ICTPRG302CodingHomework/passFail.py

16 lines
422 B
Python
Raw Permalink Normal View History

2023-09-17 06:59:08 +00:00
# Copyright 2022, Rayyan Hodges, TAFE NSW
# rayyan.hodges@studytafensw.edu.au
#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!")