Exercise 1:
score = int(input("Please input your score:"))
if score > 90:
print("Excellent!")
print("Please go to the office for gift!")
print("Test.")
Exercise 2:
print("Course Registration Program.")
python = input("Do you like Python Programming?(y/n)")
if python == "y":
print("Please go to classroom 101 for registration")
robot = input("Do you like Robot Competitions?(y/n)")
if robot == "y":
print("Please go to classroom 102 for registration")
soccer = input("Do you like Soccer?(y/n)")
if soccer == "y":
print("Please go to classroom 103 for registration")
print("Course Registration Program. ")
Homework:
one = 5
two = 9
three = 12
number = int(input("Please guess a number between 0 and 20:"))
if number == 5:
print("Congratulations. First Award")
if number == 9:
print("Congratulations. Second Award")
if number == 12:
print("Congratulations. Third Award")
print("Guess Number")
[…] 8 GUI design II|____Python Level 2| |____Unit 9 bool data type and relational operators| |____Unit 10 if statement| |____Unit 11 Logical Operators| |____Unit 12 Priority of Operators| |____Unit 13 if else […]