×
×
Correct!
Exit the loop when
fruits = ["apple", "banana", "cherry"]
for x in fruits:
if x == "banana":
@(5)
print(x)
fruits = ["apple", "banana", "cherry"]
for x in fruits:
if x == "banana":
break
print(x)
Not CorrectClick here to try again. Correct! |
This will reset the score of ALL 95 exercises.
Are you sure you want to continue?