122,742 views
4 votes
4 votes
Write a Python program that prompts the user to input your name, nationality, and calculates the age by entering the year of birth.

User Zombie
by
3.3k points

1 Answer

9 votes
9 votes
#sample python program
###################
currentYear = 2022
name = str(input(“Enter your name: “))
nationality = input(“Enter your nationality: ”)
birthYear = int(input(“Enter your birth year: “)
print(“Your age is:”, (currentYear - birthYear))
User Northpole
by
3.3k points