"""
inout.py

Prompt the user for their age.
Then tell them how old they are in dog years. 
"""

import sys

try:
    years = input("How old are you? ")
except EOFError:
    sys.exit(0)

try:
    years = float(years)
except ValueError:
    print("Sorry,", years, "is not a number.")
    years = 0.0
    print("I'll assume your age is", years, "years.")

dogYears = round(years / 7)
print("That's about", dogYears, "dog years!")
sys.exit(0)

57d9632c1cf0944bc0ce374bf2c0f9bc64f0b4ce
<mask token>

<mask token>
try:
    years = input('How old are you? ')
except EOFError:
    sys.exit(0)
try:
    years = float(years)
except ValueError:
    print('Sorry,', years, 'is not a number.')
    years = 0.0
    print("I'll assume your age is", years, 'years.')
<mask token>
print("That's about", dogYears, 'dog years!')
sys.exit(0)

<mask token>
try:
    years = input('How old are you? ')
except EOFError:
    sys.exit(0)
try:
    years = float(years)
except ValueError:
    print('Sorry,', years, 'is not a number.')
    years = 0.0
    print("I'll assume your age is", years, 'years.')
dogYears = round(years / 7)
print("That's about", dogYears, 'dog years!')
sys.exit(0)

<mask token>
import sys
try:
    years = input('How old are you? ')
except EOFError:
    sys.exit(0)
try:
    years = float(years)
except ValueError:
    print('Sorry,', years, 'is not a number.')
    years = 0.0
    print("I'll assume your age is", years, 'years.')
dogYears = round(years / 7)
print("That's about", dogYears, 'dog years!')
sys.exit(0)

"""
inout.py

Prompt the user for their age.
Then tell them how old they are in dog years. 
"""

import sys

try:
    years = input("How old are you? ")
except EOFError:
    sys.exit(0)

try:
    years = float(years)
except ValueError:
    print("Sorry,", years, "is not a number.")
    years = 0.0
    print("I'll assume your age is", years, "years.")

dogYears = round(years / 7)
print("That's about", dogYears, "dog years!")
sys.exit(0)
