create list of elements python code example
Example 1: python lists
thislist = ["apple", "banana", "cherry"]
print(thislist[1])
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 ]