''' DS2000 Fall 2024 Sample code from class - converting data about dogs 9/10/24 Ways to improve what we started with: * input("Enter value") gives us a string. Convert with float(input("Enter value")) or int(input("Enter value")) * use round(height_in) so the user sees a whole number instead of tons of digits ''' LBS_PER_KILO = 2.2 CMS_PER_INCH = 2.54 def main(): # step one: gather data from the user about the dog # in the metric system weight_kg = float(input("What is weight in kilos?")) height_cm = int(input("What is height in cm?")) # step two: convert both data points from metric # to imperial weight_lbs = weight_kg * LBS_PER_KILO height_in = height_cm / CMS_PER_INCH # step three: report results to the user print("Weight in pounds:", weight_lbs) print("Height in inches:", round(height_in)) main()