|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
第002讲 作业 成绩100分
mark = int(input("please input your final score:"))
if mark == 100:
print("good job")
elif mark > 100:
pass
elif mark < 0:
pass
else:
print("try harder next time.")
while True:
mark = int(input("please input your final score:"))
if mark == 100:
print("good job")
break
elif mark > 100 or mark < 0:
print("input again.")
continue
else:
print("try harder next time.")
break
while True:
mark = input("your mark")
print(mark.isnumeric())
if mark.isnumeric():
mark = int(mark)
if mark == 100:
print("good job")
break
elif mark > 100 or mark < 0:
print("input again.")
continue
else:
print("try harder next time.")
break
def marker():
mark = input("your mark")
if mark.isnumeric():
mark = int(mark)
if mark == 100:
print("good job")
elif mark > 100 or mark < 0:
print("input again.")
marker()
else:
print("try harder next time.")
marker()
|
|