May-07-2017, 06:49 PM
This makes no sense why python will not do a simple multiplication instead of duplicating 7 times. Need to be able to input a number in human years and then have the code print both human years and dog years. code posted below.
human_years = input('How old are you? ') dog_years = human_years * 7 # use the variable name dog_years so that the print statements below will print out the correct values. print("You are", human_years, "in human years") print("You are", dog_years, "in dog years")