Question: Write a Python program that first allows user to enter two float numbers , which will be assigned to variable x and variable y .
Write a Python program that first allows user to enter two float numbers, which will be assigned to variable x and variable y. Then, write three Python statements for the following three Math expressions, respectively.
(1) a = x(x+y) + 2xy
(2) b = x3+
y 2
(3) c = x(2+y)2
Finally, print out variables a, b, and c.

Enter the value of variable x: 3 Enter the value of variable y: 2 The variable a is 27.0 The variable bis 28.0 The variable c is 48.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
