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 25, 2022
1 parent 90b4e73 commit 1d0a754
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Stay_hydrated_kyu8.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# # A function to work out how much water to drink if you're going to drink half a litre of water every hour
# imports math for the use of .floor
# Returns hours * 0.5 rounded down

import math

def litres(time):
return math.floor(time * 0.5)

0 comments on commit 1d0a754

Please sign in to comment.