Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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|

image text in transcribed
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

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

Databases Illuminated

Authors: Catherine M Ricardo, Susan D Urban

3rd Edition

1284056945, 9781284056945

More Books

Students also viewed these Databases questions