Computer Science, asked by dawoodhasankhan, 8 months ago

evaluate: X=12Y, Y=X+2,X+5. print (X, Y)​

Answers

Answered by ilmashameem2020sps7
0

Answer:

w3resource

home

Front End

HTML

CSS

JavaScript

HTML5

Schema.

Useful tools

Google Docs Forms Templates

Google Docs Slide Presentations

Number Conversions

Linux Tutorials

Quizzes

Articles

Python: Python program to solve (x + y) * (x + y)

Last update on September 18 2020 12:55:37 (UTC/GMT +8 hours)

Python Basic: Exercise-38 with Solution

Write a Python program to solve (x + y) * (x + y).

Test Data : x = 4, y = 3

Expected Output : (4 + 3) ^ 2) = 49

Sample Solution:

Python Code:

x, y = 4, 3

result = x * x + 2 * x * y + y * y

print("({} + {}) ^ 2) = {}".format(x, y, result))

Copy

Sample Output:

(4 + 3) ^ 2) = 49

Flowchart:

Flowchart: Python program to solve (x + y) * (x + y).

Visualize Python code execution:

The following tool visualize what the computer is doing step-by-step as it executes the said program:

Similar questions