Python Write Better Python Cleaner Code Function and Class Whitespace

Akshaan Mazumdar
Akshaan Mazumdar
2,891 Points

what is wrong?

cant really find anything wrong with the spacing

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

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! You're doing great, but that last function is supposed to be inside the class. It is a class method. I think you can get it with these hints!

Hope this helps! :sparkles: