Skip to content

Instantly share code, notes, and snippets.

@x1001000
Created May 22, 2021 21:32
Show Gist options
  • Save x1001000/4cc29dd1ba77a608a1963777d20697ee to your computer and use it in GitHub Desktop.
Save x1001000/4cc29dd1ba77a608a1963777d20697ee to your computer and use it in GitHub Desktop.
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