ICTPRG302CodingHomework/passFail.py

13 lines
343 B
Python

#Obtaining course score from user and defining it
coursescore=int(input("Please enter your test score: "))
#Determining if user has passed or failed course
if coursescore <50:
print("You have failed the course.")
if coursescore >50:
print("You have passed the course!")
if coursescore ==50:
print("You have passed the course!")