Write a Python program to solve (x + y) * (x + y)
I have used python 3.7 compiler for debugging purpose.
x, y = 5, 4 result = x * x + 2 * x * y + y * y print("({} + {}) ^ 2) = {}".format(x, y, result))
Result:
(5 + 4) ^ 2) = 81
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
I have used python 3.7 compiler for debugging purpose.
Result:
(5 + 4) ^ 2) = 81
need an explanation for this answer? contact us directly to get an explanation for this answer