repl.it
@CAILEY0132790/

Python Handouts - if else

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
print("Hello, what is your name?")
user_name = (input())

print(" ")

print("What grade do you have for Math?")
users_grade = int(input())

if (users_grade > 80) and (users_grade < 90):
  print("Great job " + str(user_name) + "! However you could do better.")

if (users_grade > 90) and (users_grade < 99):
  print("AMAZING " + str(user_name) + ", but you were so close!")

if (users_grade < 80):
  print("I'm slightly dissapointed in you " + str(user_name) + ", try better trying and studying more.")
?