Zybooks Lab

2.1 LAB: Input and formatted output: Caffeine levelsA half-life is the amount of time it takes for a substance or entity to fall to half its original value. Caffeine has a half-life of about 6 hours in humans. Given caffeine amount (in mg) as input, output the caffeine level after 6, 12, and 24 hours. Use a string formatting expression with conversion specifiers to output the caffeine amount as floating-point numbers.Output each floating-point value with two digits after the decimal point, which can be achieved as follows:print(‘{:.2f}’.format(your_value))Ex: If the input is:100the output is:After 6 hours: 50.00 mgAfter 12 hours: 25.00 mgAfter 24 hours: 6.25 mgNote: A cup of coffee has about 100 mg. A soda has about 40 mg. An “energy” drink (a misnomer) has between 100 mg and 200 mg.301884.1838198LAB ACTIVITY2.1.1: LAB: Input and formatted output: Caffeine levels0 / 10

"Looking for a Similar Assignment? Order now and Get 15% Discount! Use Code "FIRST15"

"Do you have an upcoming essay or assignment due?

Get any topic done in as little as 6 hours

If yes Order Similar Paper

All of our assignments are originally produced, unique, and free of plagiarism.