Skip to content

Instantly share code, notes, and snippets.

@ultrakain
Last active April 1, 2017 02:13
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 ultrakain/5536fa26da07ff39b658508537b61506 to your computer and use it in GitHub Desktop.
Save ultrakain/5536fa26da07ff39b658508537b61506 to your computer and use it in GitHub Desktop.
python if example
score = input('Input score : ')
score_num = int(score)
if score_num >= 90:
print('A')
elif score_num >= 80 and score_num < 90:
print('B')
elif score_num >= 70 and score_num < 80:
print('C')
elif score_num >= 60 and score_num < 70:
print('D')
else:
print('F')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment