Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I am writing the following code for Python 3. The following is the input. name = input('What is your name?') age = int(input('How old are
I am writing the following code for Python 3. The following is the input.
name = input('What is your name?')
age = int(input('How old are you?'))
print('Hello',name,'!', 'You were born in',2020 - age,'.')
The following is the output
What is your name? Heidi
How old are you? 51
Hello Heidi ! You were born in 1969 .
How do I get rid of the space before the ! and the space before the period?
Dee
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