Intern — Middle
Identification of variable types obtained by different comprehensions
livecode
Task condition
In this example, three variables are created using different forms of comprehension. Determine which data type each one belongs to.
list_comp = [i for i in range(10)]
set_comp = {i for i in range(10)}
gen_expr = (i for i in range(10))