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
Get step-by-step solutions from verified subject matter experts
