Books:
Python Coding Challange - Question with Answer (01080725)
-
*Explanation*✅ a = (i for i in range(3))
This is a *generator expression*.
It creates a generator that will *yield values one by one* from
range(3) → ...
No comments:
Post a Comment