First page Back Continue Last page Overview Graphics

Solution

age = int(input("Dog's age: "))

# Python2:

# age = int(raw_input("Dog's age: "))

print()

if age < 0:

print("This can't be true!")

elif age == 1:

print("about 14 years")

elif age == 2:

print("about 22 years")

elif age > 2:

human = 22 + (age -2)*5

print("in human years:", human)

###

# Python 2:

# raw_input('press Return>')

input('press Return>')