Created
May 22, 2021 21:32
-
-
Save x1001000/4cc29dd1ba77a608a1963777d20697ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: # 試試 | |
# 切成三段 | |
ddd, dd, dddd = input().split('-') | |
# 都轉整數 | |
int(ddd) | |
int(dd) | |
int(dddd) | |
# 若還沒炸 | |
print('Valid SSN') | |
except: # 有炸的話 | |
print('Invalid SSN') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment