Built-in Functions
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
| Name | Description |
|---|---|
| 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))