Step-by-step explanation:
Problem is to cast your input values either in int() or float() this this up to you in which format you want your output,
Example2:
calories = int(input("How many calories are in the item? "))
caloriesFat = int(input("How many calories are from fat? "))
percentFat = int(caloriesFat / calories)
Now output on the screen:
print(percentFat)
Example2:
calories = float(input("How many calories are in the item? "))
caloriesFat = float(input("How many calories are from fat? "))
percentFat = float(caloriesFat / calories)
Now output on the screen:
print(percentFat)
I hope you got the idea Thanks