Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For the following code, what is the error? #the teacher's version CurrentYear = 2 0 2 0 myYear = input ( What year were

For the following code, what is the error?
#the teacher's version
CurrentYear =2020
myYear = input ("What year were you born ")
myAge = CurrentYear - myYear
print ("The number you entered is "+ myNumber)
The print statement needs to be spelled in all capital letters.
Nothing, this code is 100% correct.
The # is in the wrong place, it needs to be always at the bottom.
Can not do math with a str and an int.
image text in transcribed

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

Marketing Database Analytics

Authors: Andrew D. Banasiewicz

1st Edition

0415657881, 978-0415657884

More Books

Students also viewed these Databases questions

Question

A 2-gallon bucket of paint costs $51.52. What is the price per pint

Answered: 1 week ago