Flag PLEASE READ!!! You probably don't know what this is.... So here goes: Imagine this scenario. You get a job. Every day you work, you have a 5% chance of dying (I would not like that job). So, if you did that work for 2 days, what would the chance of being alive be? In one day, it would be 95% chance of living (because 100 - 5 is 95). However, the answer is NOT 90%. that's because you take 5% of whatever's LEFT. So 95 / 20 (which is how you get 5%) = 4.75 95 - 4.75 is 90.25 so the answer is 90.25 . This project goes up to 6 days.
Feel free to use my number printer (it's in the code) PLEASE READ INSTRUCTIONS!!! If you want to use my number printing code, feel free to, just give credit please! btw, if you use python 2.7, you can copy this code into it to do more days, the range1 variable can be changed (now it does 100 days): five_per = 0 left = 100 range1 = 101 for i in range(range1): print ("There is a {} percent chance of living now after {} days.".format(left, i)) five_per = left / 20.0000000000000 left -= five_per