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 Write Better Python Cleaner Code Function and Class Whitespace

Paul Ehizuelen Jr.
Paul Ehizuelen Jr.
4,379 Points

Can anyone find where I may have altered the code?

Continuous "Bummer! Don't change the code, just fix the whitespace" but I'm not convinced I have changed the code. Any insight to why it keeps happening?

starter.py
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
Stuart Wright
Stuart Wright
41,118 Points

I just tried this challenge and get the same error message. I'm convinced that I didn't change any of the code either. I think this might be a bug.

I got the same error and I haven't changed the code either.

Paul Ehizuelen Jr.
Paul Ehizuelen Jr.
4,379 Points

Already submitted to support team. They are working on it! Thanks for the responses.

I'm stuck with this task. Already finished the rest in this course and can't move on to the next :-(

2 Answers

Steven Parker
Steven Parker
229,744 Points

I think you've found a bug. :beetle:

You may want to report this to Support, it might get you a "special Exterminator badge".

Paul Ehizuelen Jr.
Paul Ehizuelen Jr.
4,379 Points

I figured, thank you for the response! I've gone ahead and submitted a request with them.

Steven Parker
Steven Parker
229,744 Points

Yay, bug fixed. But.. it doesn't look like you got the badge ?

Paul Ehizuelen Jr.
Paul Ehizuelen Jr.
4,379 Points

i did not, should I send and email?

Steven Parker
Steven Parker
229,744 Points

Sure, you should get one unless someone else reported it first.