Junior — Senior
Comparison of list comprehension and generator expression
livecode
Task condition
What will be printed after executing the following code:
print([i for i in range(5)])
print((i for i in range(5)))
livecode
Task condition
What will be printed after executing the following code:
print([i for i in range(5)])
print((i for i in range(5)))