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:

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy