Question: How do I fix the current syntax errors so the Python code compiles correctly? Invalid Syntax: int myCurrentAge = 18; ^ This program calculates your

How do I fix the current syntax errors so the Python code compiles correctly?

Invalid Syntax: int myCurrentAge = 18; ^

This program calculates your age in the year 2050. #Input: None #Output: Your current age followed by your age in 2050 #Create your variables here

int myCurrentAge = 18; int currentYear = 2016; myNewAge = myCurrentAge + (2050 - currentYear) print("My Current Age is " + int(myCurrentAge)) print("I will be " + int(myNewAge) + " in 2050.")

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!