Hip to Be Square

The questions below are due on Sunday July 06, 2025; 10:00:00 PM.
 
You are not logged in.

Please Log In for full access to the web site.
Note that this link will take you to an external site (https://shimmer.mit.edu) to authenticate, and then you will be redirected back to this page.

Part 1

Define a function square that takes a single numeric parameter and returns its square. Submit your definition of square below:

Part 2

In the box below, define a function fourth_power that takes a single numeric parameter and returns that value raised to the fourth power. Your code should not explicitly use exponentiation or multiplication, or a loop, but rather should make use of the square function you defined above.

You may assume that square has been defined for you already in the box below (i.e., you do not need to re-paste your definition of square).

Next Exercise: Averages

Back to exercises