Tuple Comprehension ???

Hen Hanna henhanna at gmail.com
Mon Feb 20 22:36:15 EST 2023


For a while,  i've been curious about a  [Tuple   Comprehension] 

So  finally   i tried it, and the result was a bit surprising...


X= [ x for x in range(10) ]
X= ( x for x in range(10) )
print(X)
a= list(X)
print(a)





More information about the Python-list mailing list