fruits = ["apple", "banana", "cherry"] for x in fruits: print(x) if x == "banana": break Identify output ? code example
Example: fruits = ["apple", "banana", "cherry"] for x in fruits: print(x) if x == "banana": break Identify output ?
fruits = ["apple", "banana", "cherry"]
for x in fruits:
print(x)
if x == "banana":
break