Converts an iterable to a list.
Syntax
list(iterable?)Example
Enter values below to update the example in real time.
print→list→print(list("abc")) # ['a', 'b', 'c']
print(list(range(5))) # [0, 1, 2, 3, 4]
print(list({1, 2, 3})) # [1, 2, 3]