๐Ÿ“– Beginning Python Programming /
Module: Controlling logic flow

if...:

๐Ÿ“– Beginning Python Programming / Controlling logic flow / if...:

Re-use if checking with functions

def is_student_pass(score):
    if score >= 60:
        return "Pass"
    else:
        return "Fail"

print(is_student_pass(59))
print(is_student_pass(62))