Question: Write a Python program to prompt the user for an integer number. Assign this integer to a variable X. Then assign a variable Y to
Write a Python program to prompt the user for an integer number. Assign this integer to a variable X. Then assign a variable Y to the X**3 (X to the power 3). Finally, assign the variable Z to the square root of Y and print the values of X, Y, and Z as shown in the example below.
Use main() function to define and call the program.
Example:
Enter an integer number: 3
X = 3
if Y=X**3 then Y = 27
Z = 5.196152 (Square root of Y)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
