Etc/Python

012 for continue break

junmoyo 2021. 1. 16. 20:30

description :

 

 


source code :

list_data = ['a', 'b', 'c', 'd', 'e', 'f', 'g']

for x in list_data:
    print(x)
    
    if x <'c':
        continue
    else:
    	break

 

result :