Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,100 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
208,479 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
208,479 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
208,479 Points

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