Read about variables here.
Here you can practice writing python code online and see the result.
Write python code and test it online
fruits = ["apple", "banana", "cherry"]
for x in fruits:
print(x)
if x == "banana":
break
Reed more
i = 1
while i < 6:
print(i)
i += 1