how do I print the output of this BMI calculator in a new folder on the desktop? (the results should also be visible in the terminal) and then continue to put the output in that same folder every time there is a new output. (and not create a new folder if it already exists )
height = float(input("Enter your height in cm: "))
weight = float(input("Enter your weight in kg: "))
BMI = weight / (height/100)**2
BMI = weight / (height/100)**2
if BMI <= 18.4:
print("You are underweight.")
elif BMI <= 24.9:
print("You are healthy.")
elif BMI <= 29.9:
print("You are over weight.")
elif BMI <= 34.9:
print("You are severely over weight.")
elif BMI <= 39.9:
print("You are obese.")
else:
print("You are severely obese.")