Lists and Iterations
Practice lists and iterations
fruits = ["apple", "orange", "banana", "cherry", "grape", "watermelon"]
for item in fruits:
print(item)
for i in range(len(fruits)):
print(fruits[i])
i = 0
while i < len(fruits):
print(fruits[i])
i = i + 1
num = [45, 87, 21, 9, 13, 54, 92, 41, 42, 23, 67, 44, 34, 12]
num.remove(45) # removes value of a list
num.append(100) # adds value to a list
num.sort # sorts int lists from least to greatest
print(num)