Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Functional Python Functional Workhorses Map Comprehension

Can't find the error on my code

Create a function named area() that takes a single argument which will be a two-member tuple. area() should return the result of multiplying the first item in the tuple by the second item in the tuple.

dimensions = [
    (5, 5),
    (10, 10),
    (2.2, 2.3),
    (100, 100),
    (8, 70),

def area(tupl):
    return tipl[0] * tupl[1]

1 Answer

Nathan Tallack
Nathan Tallack
22,159 Points

You are going to kick yourself. ;)

You spelt tupl wrong the first time your return statement. You used tipl rather than tupl. ;)

Thank you. It's so silly..

Nathan Tallack
Nathan Tallack
22,159 Points

No problem. We all make those type of errors. Later when you start using an IDE to write your own code it will highlight these type of errors for you. :)