This code will tell you about hydration. You should be sure to drink AT LEAST 10 cups of water a day!
Well actually you don't need to drink '10' or even '8' cups of water a day. The truth is that although everyone 'knows' that your supposed to drink 8 cups of water a day, that's actually not true. In fact the body has a system to combat dehydration. It's called thirst. The real time to drink is when you feel thirsty. People have been doing it for millions of years.But you might say that it's fine to drink too much water because then you'll just pee more. But the truth is that while exercising your body goes into a conservation mode. Studies have shown that runners have actually gained weight while running marathons because of how much water they were drinking. Instead of dehydration we have a new problem rising; over hydration. Over 12 people have actually died because of drinking too much water. All of this information was found at Adam ruins everything
@AdCharity - Let me ask you a question: would humans have adapted over thousands of years to feel thirsty when they need to drink, so they know when to have some water to stay healthy; or would they have adapted to feel thirsty when they're dehydrated, having to guess randomly when to drink so you don't feel "thirsty"?
From Google, the adjective 'thirsty' means having a need to drink. This shows that humans have adapted towards knowing when they need to drink rather than having to chug water they don't need all the time.
@Luxi By the time you feel thirsty you are dehydrated. Look it up. The first thing you see is a Baylor study for saying by the time you are thirsty its late. Frankly, you going off of your second hand knowledge obtained from 6th grade science class isn't going to cut it. If you don't know what Baylor is, maybe you should stop pretending that you have some great medical knowledge when you don't even know some of the better colleges of medicine.
@3465728974563 I am simply reflecting the tone that is given. I know what he wrote, and I wrote an accurate and intelligent response. He even decided to write the definition of thirsty. Give me a break. If anyone is being a jerk its @Luxi and you for not reading.
Edit: I just want to point out that there's no real reason to argue. Everyone needs different levels of water based on their genetics and environment. But as a baseline, I'm pretty sure @BananaSoul's numbers are fairly accurate.
@BananaSoul - It is asking for an integer (a whole number), so it looks for one. If your answer is for example 5, it works, but it wouldn't work with "A" as that is not a whole number. Different types are used for code such as;
abc = 1
if abc > 0:
If instead, it was a string, it wouldn't work; as it couldn't compare a string (probably expecting words like 'And' as the input) to the number '0').
@BananaSoul - No problem :) By the way, you can use =< or => to say 'equal to or greater/less than'. Alternatively, you can still use > or < but use the number below the one to encompass all options you want. Example:
slicesOfPizza = 8
if slicesOfPizza => 1:
--slicesOfPizza = slicesOfPizza - 1
Instead of "=> 1", you can also put ">0". The second would put everything greater than 0, which is 1, 2, 3, etc. just like the first one would.
Just thought I would say, because you did >10 and ==10 as separate functions.