Learn Python 3 - Help with exponents

I am trying to do Learn Python 3 and I am confused on the exponents part.
https://www.codecademy.com/courses/learn-python-3/lessons/python-hello-world/exercises/exponents

The part I am confused about is “Your 6x6 quilts have taken off so well, 6 people have each requested 6 quilts. Print out how many tiles you would need to make 6 quilts apiece for 6 people.” I don’t get how the answer is 6 ** 4. If you get one 6x6 tile with 6 ** 2, how is 6 ** 4 the answer?

To my understanding exponents work like this: 6 ** 2 = 6 * 6 = 36. So using that same knowledge 6 ** 4 is 6 * 6 * 6 * 6. Wouldn’t that just make two quilts??

1 Like

6 * 6 + 6 * 6 would be two quilts. That’s 36 + 36, so 72 squares.

You need 36 quilts. 6 people each want 6 quilts.
One quilt is 6 * 6. You need 6* 6 quilts (36). That’s 36 quilts * 36 squares each. You can write that several ways:

  • 36 * 36
  • 6 * 6 * 6 * 6
  • 6**4
1 Like

Ohh okay, that makes a lot more sense. So if I am reading this correctly, 1 person wants 6 quilts and there are 6 people so it’s 6 * 6, which is 36 quilts. Since 1 quilt needs 36 squares, that’s 36 quilts * 36 squares which is the same as 6 ** 4 (6 * 6 * 6 * 6).

2 Likes

Exactly!

1 Like

Thank you for the help!

1 Like