list in python
myfavouritefoods = ["Pizza", "burgers" , "chocolate"]
print(myfavouritefoods[1])
#or
print(myfavouritefoods)
list in python
myfavouritefoods = ["Pizza", "burgers" , "chocolate"]
print(myfavouritefoods[1])
#or
print(myfavouritefoods)
list in python
# List
a = []
# Dictionary
b = {}
# Tuple
c = ()
# Set
d = {1,2,3}
list in python
fruits = ["apple", "banana", "cherry"]
print(fruits)
fruits[0]
fruits[:2]
python lists
thislist = ["apple", "banana", "cherry"]
print(thislist[1])
list in python
#list is data structure
#used to store different types of data at same place
list = ['this is str', 12, 12.2, True]
list in python
myList = ["Test", 419]
myList.append(10)
myList.append("my code")
print(myList)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us