Question: ning Constants in Python Working With Constants in Python NewAge2.py 1. # This progran calculates your age un the year 2950 21 Input: None 3|

 ning Constants in Python Working With Constants in Python NewAge2.py 1.

ning Constants in Python Working With Constants in Python NewAge2.py 1. # This progran calculates your age un the year 2950 21 Input: None 3| # Output: Your current age followed by your age un 2ese Summary 5.nyCurrentAge 29 6 currentYear2016 In this lab, you assign constants in a Python program. The program, which is saved in a file named NewAge2,py, calculates your age in the year 2050. 8 myNewAge nyCurrentAge (2958 currentYear) 9 print("My Current Age isstr(nyCurrentAge)) 10 print("I will be str(nyNewAge) in 2050. ") Instructions 1. Assign a constant named YEAR with the value 2ese 2. Edit the statement nyNewAge = nyCurrentAge + (2950- currentYear) so it uses the constant named YEAR 3. Edit the statement print("I will be"+ str(nyNewAge)+ in 2858" so it uses the constant named YEAR Type here to search

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!