Computer Science, asked by ptsering25, 2 months ago

write a²+b²+2ab in python​

Answers

Answered by robot9656
0

Answer:

(a+b)²

Explanation:

it is an algebraic identity

(a+b)² = a²+b²+2ab

Answered by anindyaadhikari13
5

Answer:

  • Python expression for a² + b² + 2ab is - a*a + b*b + 2*a*b.
  • We can also write - a* *2 + b* *2 + 2*a*b.

Explanation:

  • * (asterisk) is used for multiplication. To get the value of a² and b², we can easily multiply a with a i.e., a*a and b*b. Similarly, for 2ab part, we can find its value by writing - 2*a*b.
  • We can also find the value of a² and b² by raising its value to the power to. For that,* * operator is used. x * *y returns x raised to the powe y.

Note:

  • Avoid spaces between two asterisks when performing exponentiation.
Similar questions