Advertisement
KodingKid

How to calculate how old someone is in Python

Apr 19th, 2021
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. age = int(input("Enter your birth year here!"))
  2. print("You are:" + 2021 - age)
  3. #see also my c# and javascript version of this: https://pastebin.com/ncDQACKn + https://pastebin.com/8pRLqr1x
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement