ways of creating list in python code example
Example 1: how to make a list in python
list = [1, 2, 3, 4, 5, 6, 7]
Example 2: making lists in python
# list with numbers
list = [10, 20, 30]
# list with strings
list = ["john", "kai", "albert"]
# mixed data
list = ["john",1 ,True ]