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 trialSarah Schaeffer
Data Analysis Techdegree Graduate 11,564 PointsWrite Better Python Code Challenge Task 1 of 1
Getting a Bummer! saying whitespace on line 11. Thanks for any help and advice
def first_function(arg1):
return 'arg1 is {}'.format(arg1)
def second_function(arg1):
return 'arg1 is {}'.format(arg1)
class MyClass:
args = [1, 2, 3]
def class_func(self):
return self.args
2 Answers
Travis Alstrand
Treehouse Project ReviewerHey Sarah Schaeffer !
Be sure that there are no invisible "spaces" on these lines. If you click on them and the cursor is "tabbed" over to the right, be sure to delete any of those sneaky spaces. Everything else about your code looks great!! Nice!
Sarah Schaeffer
Data Analysis Techdegree Graduate 11,564 PointsThank you so much Travis Alstrand! That was the problem, wouldn't of guessed that.
Travis Alstrand
Treehouse Project ReviewerYou're welcome! Yes, all of that PEP8 stuff can be extremely particular and hard to catch at first. Luckily, we can set up our own Text Editors to automatically format to this for us so we don't usually need to worry about it much