Last active
June 29, 2018 03:11
movieLevel-2
This file contains hidden or 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
age = int(input("請輸入你的年齡: ").strip()) | |
if(age <18): | |
print("您目前年齡為{}歲,可以觀賞『普遍級』、『保護級』、『輔12級』與『輔15級』電影,但由您未滿18歲,不得觀賞『限制級』電影".format(age)) | |
else: | |
print("您目前年齡為{}歲,可以觀賞任何電影".format(age)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment