0
def fun_name():
 for condition:
  for condition:
   if condition:
    #continue 
   else:
    pass 

How do i jump to the outer for loop as there is no goto or label keyword in python ? Continue will return me to the inner for loop. Is there a way to achieve this ?

Chirag Shah
  • 87
  • 1
  • 3
  • 13

1 Answers1

1

Use the 'break' keyword to break out of the inner loop.

Shalan
  • 176
  • 5