Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from string import ascii_uppercase
- abc = ('a','1','2','3','b','c')
- a = abc[0]
- b = abc[1]
- c = abc[2]
- d = abc[3]
- e = abc[4]
- f = abc[5]
- res1 = a.upper() in ascii_uppercase
- res2 = b.isdigit()
- res3 = c.isdigit()
- res4 = d.isdigit()
- res5 = e.upper() in ascii_uppercase
- res6 = f.upper() in ascii_uppercase
- if res1 == True and res2 == True and res3 == True and res4 == True and res5 == True and res6 == True:
- print('YES')
- else:
- print('No')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement