HomePython Write a Python program to solve (x + y) * (x + y) Vikram somai October 08, 2021 0 Comments Facebook Twitter Write a Python program to solve (x + y) * (x + y)example:-x=6,y=2(6 + 2) ^ 2) = 64 code:-x, y = 6, 2 result = x * x + 2 * x * y + y * y print("({} + {}) ^ 2) = {}".format(x, y, result)) output:-(6 + 2) ^ 2) = 64 Tags Python Facebook Twitter
Post a Comment
If you have any doubts, Please let me know
Thanks!