Python | List Comprehension Quiz | Question 10

Last Updated :
Discuss
Comments

What happens if you use list comprehension without assigning it to a variable?

It raises a syntax error.

It creates a list but doesn't store it.

It modifies the original list in-place.

It returns a generator object.

Share your thoughts in the comments