# Create a solution that accepts an integer input representing any number of ounces. Output the converted total number of tons, pounds
# and remaining ounces based on the value of the input ounces. There are 16 ounces in a pound, and 2,000 pounds in a ton.
#The solution output should be in the format:
# Tons: value1 Pounds: value_2 Ounces: value_3
#Sample Input/ Output
# If the input is 32,500
#Then the expected output is Tons: 1 Pounds 31 Ounces: 4
# CODE PRACTICE
#Get the input for ounces from user
ounces = int(input("Enter the number of ounces: "))
#16 ounces in a pound
pounds = ounces // 16
#2000 pounds in a ton
tons = pounds // 2000
#Convert the total number of ounces to tons, pounds and remaining ounces
# Remaining = percent %
remaining_ounces = ounces % 16
remaining_pounds = pounds % 2000
#Output the total conversion of tons, pounds and remaining based on the input of ounces
print(f"{ounces} ounces is equal to {tons} tons, {remaining_pounds} pounds, and {remaining_ounces} ounces.")
To embed this project on your website, copy the following code and paste it into your website's HTML: