Advertisement
Guest User

Untitled

a guest
Oct 20th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. abcd = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  2. kek = "0123456789"
  3. s = input()
  4. hello = True
  5. if s[0] not in abcd:
  6.     hello = False
  7. for i in range(1,4):
  8.     if s[i] not in kek:
  9.         hello = False
  10. if s[4] not in abcd:
  11.     hello = False
  12. if s[5] not in abcd:
  13.     hello = False
  14. if hello:
  15.     print("Yes")
  16. else:
  17.     print("No")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement