My question is about break statement in python
in this code, x is a iterator. for first iteration apple will store in x and and then print in the second iteration banana will store in x but because of break it will not print.
my question is why it will not print even after it is stored in x. what happen after break statement. where's that banana goes.
fruits = ["apple", "banana", "cherry"]
for x in fruits:
if x == "banana":
break
print(x)