list=list- list python code example
Example 1: list in python
thislist = ["apple", "banana", "cherry"]
print(thislist[1])
Example 2: python lists
fruits = ['apple', 'banana', 'mango', 'cherry']
for fruit in fruits:
print(fruit)
thislist = ["apple", "banana", "cherry"]
print(thislist[1])
fruits = ['apple', 'banana', 'mango', 'cherry']
for fruit in fruits:
print(fruit)