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

Daniel Kondakov
1,214 PointsI cannot understand where I made the mistake
I tried this code and I am given an error, where have I made my mistake?
def small_function():
return True
def bigger_function():
a = 2
b = 4
return a, b
1 Answer

Rohald van Merode
Treehouse StaffHey Daniel Kondakov 👋
You'll want to have a look at your return statement as that is currently not indented correctly. You'll want to make sure that it's indented to be nested inside your bigger_function()
at the same level as a
and b
:
def bigger_function():
a = 2
b = 4
return a, b
Hope this helps!