Skip to content

Commit

Permalink
Merge pull request #145 from vinegar-tom/patch-2
Browse files Browse the repository at this point in the history
Clarify overdue fine function
  • Loading branch information
chennesy authored Nov 5, 2024
2 parents 14ba490 + 2ae8ca5 commit 1290217
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions episodes/writing-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ In the date example above, we printed the results of the function code to output
```python
def calc_fine(days_overdue):
if days_overdue <= 10:
fine = days_overdue * 0.25
fine = days_overdue * 0.25
else:
fine = (days_overdue * 0.25) + (days_overdue * .50)
fine = days_overdue * 0.75
return fine

fine = calc_fine(12)
Expand Down

0 comments on commit 1290217

Please sign in to comment.