Ways to make a list in Python code example
Example 1: how to create a list in python
#creating a list
create_list = ["apple", "banana", "cherry"]
print(create_list)
Example 2: how to make a list in python
list = [1, 2, 4, 5, 6]
#creating a list
create_list = ["apple", "banana", "cherry"]
print(create_list)
list = [1, 2, 4, 5, 6]