Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Expert Oracle9i Database Administration

Authors: Sam R. Alapati

1st Edition

1590590228, 978-1590590225

More Books

Students also viewed these Databases questions