Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- st = input("Enter a string: ")
- #Case check, initial all to False
- case_len = False
- case_num = False
- case_upper = False
- #Change case check to True
- if len(st)>8:
- case_len = True
- for i in st:
- if i.isnumeric():
- case_num = True
- if i.isupper():
- case_upper = True
- #If all cases are True, Pass
- if case_num and case_len and case_upper:
- print("Yes")
- else:
- print("No")
Advertisement
Add Comment
Please, Sign In to add comment