Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
AidanBaird authored May 10, 2022
1 parent 2b76769 commit 37232d7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Students_final_grade_kyu8.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# A function that grades a persons final result by taking into account their exam grade and the amount of projects they've finished

def final_grade(exam, projects):
if exam > 90 or projects > 10:
return 100
elif exam > 75 and projects >= 5:
return 90
elif exam > 50 and projects >= 2:
return 75
else:
return 0

0 comments on commit 37232d7

Please sign in to comment.