lists in python 3 code example

Example 1: list in python

thislist = ["apple", "banana", "cherry"]
print(thislist[1])

Example 2: lists in python

lst = ["abc", 34, True, 40, "male"]
for i in lst:
	print(i)

Example 3: lists in python

lst = ["abc", 34, True, 40, "male",[1],[]]
for i in lst:
	print(i)

Example 4: python lists

fruits = ['apple', 'banana', 'mango', 'cherry']

for fruit in fruits:
  print(fruit)

Example 5: python lists

games = ['Fortnite', 'CS:GO', 'Temple Run']
print(games)

Example 6: lists in python

[0,'',True,5.2,False,[1,2]]