So, I have 3 variables the total of which should be 120. I have done the verification of that. The variables should be equal to 0 or 20 or 40 or 60 or 80 or 100 or 120. I have done the verification for that as well but now what I need is for my program to check if variable 1 is 100 and variable 2 is 0 or 20 and variable 3 is 0 or 20 in terms to output a message. Then I need to check if variable 1 is 40 or 60 or 80 variable 2 is 0 or 20 or 40 or 60 or 80 and variable 3 is 0 or 20 or 40 or 60 in terms to output a different message.
if pass_credit + defer_credit + fail_credit != 120:
print("Total incorrect!")
elif pass_credit == 120 and defer_credit == 0 fail_credit == 0:
print("Progress")
break
elif pass_credit == 100 and defer_credit == 0 or 20 and fail_credit == 0 or 20:
print("Progress - module trailer")
break
That's what I have so far
Thanks in advance