Pass with Distinction

Task Three:
Pass with Distinction is about how universities grade. The program was mainly based on using the function elif  which is else and if combined. It makes it easier to program and simplifies it. Also we used the operations we learnt about to limit each elif.  In this task we had to use the percentage for each grade and use greater in each elif to make sure the program worked when entering a grade. Once I got used to using elif and understood what it meant it was easier.

if grade >= 85:
  print("Grade = HD")
elif grade >=75:
  print("Grade = D")


No comments:

Post a Comment