1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
kotykmax [81]
3 years ago
5

Write a Python program that prompts the user to input your name, nationality, and calculates the age by entering the year of bir

th.
Computers and Technology
1 answer:
Ket [755]3 years ago
5 0

Answer:

# Python3 code to  calculate age in years

from datetime import date

def calculateAge(birthDate):

   today = date.today()

   age = today.year - birthDate.year -

        ((today.month, today.day) <

        (birthDate.month, birthDate.day))

   return age

   

# Driver code

print(calculateAge(date(1997, 2, 3)), "years")

Info:

<h2>Use pipinstall datetime as well </h2>

You might be interested in
What will be the best way for computer science students in Nepal for better salary .​
Nataly [62]

Answer:

The more knowledge you have of emerging trends, technologies and applications, the better suited you will be when it comes to applying for positions within the industry. According to Payscale, an average salary of students who have completed Bsc. Csit in Nepal is around Npr 5,00,000.

3 0
2 years ago
Every program that is created will have a starting point called ___________and is the beginning of execution.
pashok25 [27]

Answer:

Compute I think

Explanation:

I'm not 100% sure

4 0
3 years ago
Does the game cooking fever use data?
arlik [135]
It will if your not connected to wifi
5 0
3 years ago
A __________network is useful for connecting a small network.
Ket [755]
Guessing - local area network (LAN)
6 0
4 years ago
Read 2 more answers
The monitoring, collection, and analysis of socially generated data is called
k0ka [10]
The monitoring, collection, and analysis of socially generated data is called: Social Intelligence
5 0
3 years ago
Other questions:
  • The following program includes fictional sets of the top 10 male and female baby names for the current year. Write a program tha
    15·1 answer
  • i see tabs named mowed and Ramsey i tried shredding them and deleting them and ending all the processes but they start duplicati
    13·1 answer
  • What is an inode number? Group of answer choices A number that is associated with the file and unique in that particular filesyt
    8·1 answer
  • Which is a good guideline to follow when looking for research material on the Internet?
    10·2 answers
  • What is the default font style of “Title” box in MS PowerPoint 2013?
    8·1 answer
  • Suppose testcircle1 and circle1 in listing 9.1 are in two separate files named testcircle1.java and circle1.java, respectively.
    14·1 answer
  • ¿En qué situaciones puedo utilizar formato condicional?
    10·1 answer
  • HELP QUICK!!!!!!!
    15·1 answer
  • Which of the following describes evolution in the SDLC model?
    9·1 answer
  • Numerous engineering and scientific applications require finding solutions to a set of equations. Ex: 8x + 7y = 38 and 3x - 5y =
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!