Question: What, if anything, is wrong with this code? #the teacher's version CurrentYear = 2 0 2 0 myYear = input ( What year were

What, if anything, is wrong with this code?
#the teacher's version
CurrentYear =2020
myYear = input ("What year were you born ")
myAge = CurrentYear - int (myYear)
print("Your age is "+ str(myAge))
There is a syntactical error and will not run
There is a logical error in the code and will not run
Variable is not defined
Nothing, it works perfectly fine
 What, if anything, is wrong with this code? #the teacher's version

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!