Skip to content

Instantly share code, notes, and snippets.

@nekoppy
Created August 1, 2019 05:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nekoppy/732e8299a312b2fbf9fd303fc61cf597 to your computer and use it in GitHub Desktop.
Save nekoppy/732e8299a312b2fbf9fd303fc61cf597 to your computer and use it in GitHub Desktop.
if-elif-else-input-Exercises
text = input('テストの点数は?')
point = int(text)
if point >= 80:
print('優')
elif point >= 70:
print('良')
elif point >= 60:
print('可')
else:
print('不可')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment