Last active
April 1, 2017 02:13
-
-
Save ultrakain/5536fa26da07ff39b658508537b61506 to your computer and use it in GitHub Desktop.
python if example
This file contains 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
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