Question: Using Python: 1) Assign 4 as an integer to variable x, assign as 16 an integer to variable y: a) Calculate the sum of x
Using Python:
1) Assign 4 as an integer to variable x, assign as 16 an integer to variable y:
a) Calculate the sum of x and y, and assign it to variable xy. Print variable xy to the console.
b) Calculate xy to the power of x, and assign it to variable z. Print variable z to the console.
c) Calculate z divided by the square of xy, and assign it to variable xyz. Print variable xyz to the console.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
