(Sep-03-2019, 06:09 PM)d3fi Wrote: is that right?yes, it was my confusion how you want to calculate weight
for example
def adrenalin(): weight = int(input("Hvad vejer patienten? ")) #what does the patient weight left = weight % 5 weight -= left if left > 2: weight += 5 dosis = min(weight * 0.01, 0.5) print(f"Du skal give {dosis:.2f} mg, sv. {dosis:.2f} ml!")
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs