+ 1

Why Is The Meaning Of This Line In Python3. Which Is >>> n = (i for i in range(10)) . And Cant I Print n???

Please Respond!!!

31st Jul 2019, 3:32 PM
Snehasis Basu
Snehasis Basu - avatar
3 Antworten
+ 2
You have to us square brackets: [ i for i in range(10)] This is called a list comprehension
31st Jul 2019, 5:23 PM
Loeschzwerg
+ 1
Thank you very very much both of you guys thanks a lot
31st Jul 2019, 5:29 PM
Snehasis Basu
Snehasis Basu - avatar