List Shortcuts Quiz
Question 1 of 60% Complete
What's the difference between [x for x in list] and (x for x in list)?
No difference, they're the same
First creates a list, second creates a generator
First is faster, second is slower
Second syntax is invalid