list()
Make a new list from an iterable value.
list(iterable=())
list() turns values such as tuples, strings, ranges, and other iterables into a list.
With no argument, it makes an empty list.
Parameters
- iterable
- Optional value whose items should become list items.
Returns
A new list.
Try it
Run it and change it
numbers = (1, 2, 3)
print(list(numbers)) Output
Press Run to see what it prints.