Class Basics -_-


#1



There is a super simple fix but I can't do it right. Please just tell me what to change


error
File "python", line 2
def init(self, angle1, angle2, angle3):
^
IndentationError: expected an indented block


class Triangle(object):
    def __init__(self, angle1, angle2, angle3):


#2

do you just need to put the keyword pass inside of the __init__ function?
like

class Triangle(object):
    def __init__(self, angle1, angle2, angle3):
        pass

does this help?


#3

YES haha I forgot about that, thanks :slight_smile:


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.