Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started