Skip to content

Latest commit

 

History

History
6 lines (6 loc) · 606 Bytes

README_EXERCISE.md

File metadata and controls

6 lines (6 loc) · 606 Bytes

Exercise

To practise the topics from the presentation you now have the time to create your own little python project.
Please create a little grade calculator. This calculator should have a variable with the maximum points.
Also implement two functions

  • One function should output the possible grades (1, 2, 3...) using the range function
  • The other function (signature: calculate_grade(points)) should calculate (points / max_points * 5 + 1) the grade and print it with a little comment relating to the grade. Of course, the user isn't allowed to set the points above the max points