Skip to content

Instantly share code, notes, and snippets.

@Alkz6 Alkz6/

Created Jun 5, 2018
What would you like to do?
print('what a cute dog.')
while True:
real_age_dog = int(input('What is his/her age? '))
dog_years = real_age_dog * 7
real_age_dog = str(real_age_dog)
print("Wow! I think that the dog have " + str(dog_years) + " in dog years, that are a lot of years!")
except ValueError:
print('Come on! give me a number!')
except NameError:
print('Come on! give me a number!')
except Exception:
print('I don\'t know what are you doing, please try again!')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.