Advertisement
Karcky

assignment_3

May 26th, 2021
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. lst=["person1","person2","workers","person3","person4","pilot","person5","person6","person7"]
  2. for i in lst:
  3.     if(i=="pilot" or i=="workers"):
  4.        print("  no check")
  5.        continue
  6.     elif(i=="person6"):
  7.         print("  security check")
  8.         break
  9.     print(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement