Python Break Statement in For loop


Break statement in for loop

Program
# List of number number = [4, 1, 2, 27, 25, 73] # iterate over the list of number for val in number: if(val==27): break; print(val)
Input
Output