Question: Code will not print output. What is wrong with it? import datetime current_year = datetime.date.today().year current_month = datetime.date.today().month current_day = datetime.date.today().day Name = input(' What

Code will not print output. What is wrong with it?

import datetime current_year = datetime.date.today().year current_month = datetime.date.today().month current_day = datetime.date.today().day Name = input(' What is your name? ') Age = input(' How old are you? ') birth_month = int(input('Enter month of birth: ')) birth_day = int(input('Enter day you were born: ')) Year_born = int(current_year - int(Age)) if (current_month + current_day) > (birth_month + birth_day) - 1: print('Hello', Name, '!', 'You were born in', Year_born)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!