Question: Using Python write a program that stores a constant integer then displays the square, cube, and fourth power. Use the ** operator only for the

Using Python write a program that stores a constant integer then displays the square, cube, and fourth power. Use the ** operator only for the fourth power.

The output should look like this:

10 squared is 100

10 cubed is 1000

10 to the fourth power is 10000

Note: Dont put 10 in the print statement. Use the constant variable instead.

1) Code with comments and screen shot code please

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!