Listar programas em Python
#Lists python
a=[4,66,0,4.005,'hana']
print(a).........[4,66,0,4.005,'hana']
a[3]......4.005
#here 3 will be counted from 0 that is 4th term from left.
#examples
my_list = [4,5,6]
my_list = ['3',' 2', '3']
my_list = [5.025, 20.902, 0.3]
seller = ['apple', 'banana', 'avocado'] # the list
new_item = 'kiwi' # new item in the store
seller.append(new_item) # now it's have been added to the list
myfavouritefoods = ["Pizza", "burgers" , "chocolate"]
print(myfavouritefoods[1])
print(myfavouritefoods)
fruits = ["apple", "banana", "cherry"]
print(fruits)
fruits[0]
fruits[:2]
print(*fruits,sep="\n")
android developer