Exercise 2: Computing Binomial Expression

In this exercise, you need to compute the binomial expression (a+b)^2.

We'll cover the following

Problem Statement #

Write code for computing the formula

(a+b)^2

which expands into the following expression:

Get hands-on with 1200+ tech skills courses.