kyu_8.keep_hydrated package

Submodules

kyu_8.keep_hydrated.keep_hydrated module

kyu_8.keep_hydrated.keep_hydrated.litres(time) → int[source]

Because Nathan knows it is important to stay hydrated, he drinks 0.5 litres of water per hour of cycling.

You get given the time in hours and you need to return the number of litres Nathan will drink, rounded to the smallest value. :param time: :return:

kyu_8.keep_hydrated.test_keep_hydrated module

class kyu_8.keep_hydrated.test_keep_hydrated.KeepHydratedTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Testing litres function

test_keep_hydrated()[source]

Testing litres function with various test inputs :return:

Module contents