Oct-30-2020, 02:22 AM
This is my freshman year in college and I had to take a python course. It hasn't been to easy with all reote classes. the goal of this program is for the user to input two agess of dogs in human years and to get back their ages and a specified response.
this is my code so far:
this is my code so far:
humanage = int(input("please enter your dog's age in human years") if humanage <= 2: dogage = humanage * 10.5 else: dogage = 21 + (humanage - 2)*4 humanage2 = int(input("please enter your other dog's age in human years") if humanage2 <= 2: dogage2 = humanage * 10.5 else: dogage = 21 + (humanage2 - 2)*4 print("your first dog's age in dog years is", dogage) print("your second dog's age in dog years is", dogage2) if dogage == dogage2: print("friends from birth") elif dogage > dogage2 or dogage > 50: print("senior") elif dogage > 35 and dogage2 > 35: print("they could be president") elif dogage2 < 2: print("it's a puppy") else: print("cats are better anyways")If anyone could help I would very much appreciate it!