I guess you know what is happening right now in the world, so you should be prepared for Coronavirus in order to survive.
For given numbers of toilet rolls,days and familly members, write a function that returns True if you have enough toilet paper for this period and False if not, knowing the fact that one person approximately spends 1.5 toilet roll per 30 days.
Good luck!
def toilet_rolls(rolls,days,members):
return (1.5/30*days*members)<=rolls
test.assert_equals(toilet_rolls(6,30,4), True)
test.assert_equals(toilet_rolls(2,20,3), False)
test.assert_equals(toilet_rolls(7,10,1), True)
test.assert_equals(toilet_rolls(10,40,5), True)