Advertisement
Guest User

Untitled

a guest
Jan 19th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. from string import ascii_uppercase
  2.  
  3. abc = ('a','1','2','3','b','c')
  4. a = abc[0]
  5. b = abc[1]
  6. c = abc[2]
  7. d = abc[3]
  8. e = abc[4]
  9. f = abc[5]
  10.  
  11. res1 = a.upper() in ascii_uppercase
  12. res2 = b.isdigit()
  13. res3 = c.isdigit()
  14. res4 = d.isdigit()
  15. res5 = e.upper() in ascii_uppercase
  16. res6 = f.upper() in ascii_uppercase
  17. if res1 == True and res2 == True and res3 == True and res4 == True and res5 == True and res6 == True:
  18. print('YES')
  19. else:
  20. print('No')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement