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 trialMd Akibe Hashan
2,422 PointsCreate a function called my_first_function. Inside the function body, indent 4 spaces and write the word "pass".
anyone can tell me why the code is not working
def my_first_function():
pass
7 Answers
KRIS NIKOLAISEN
54,972 PointsNote sure. I copy/pasted your code into the challenge and it passed.
Benjamin Gooch
20,367 PointsI'm working on this same one and it says:
Bummer: Whoops - did you create a function called print_topic
?
This is clearly a problem... Any suggestions on how to progress past this?
Benjamin Gooch
20,367 PointsStrange... I reloaded the page, tried again, and it worked fine. Either way, the error message provided as a response is not even close to what I was instructed to do.
Stefan Spinu
2,144 PointsStill doesn't work for me - is this a bug?
juan velasco
9,293 Pointsyou need to leave 4 spaces ____pass
WESLEY EDGAR BENSON
3,644 Pointsdef my_first_function(): pass once you are on the second line it will be indented then you have to count four spaces then type pass
Md Akibe Hashan
2,422 PointsI don't know what happend It still not working
Bonnie McInturf
2,178 PointsStill buggy July 2023. As suggested, I made sure to include the four spaces. After reloading the page twice, it passed.