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+Write a Python program that first allows user to enter two float y 2

(3) c = x(2+y)2

Finally, print out variables a, b, and c.

numbers, which will be assigned to variable x and variable y. Then,

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

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!