repl.it
@Tom_Becks07/

DogYears

Python 2.7

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
DogYears=int(input("Enter the age of your dog"))
if DogYears<=2:
  HumanYears=DogYears*12
else:
  HumanYears=24+((DogYears-2)*6)
print(HumanYears)
Fetching token
?