Class Basics


Class Basics

Did you try to create a class with the name Triangle?

I might just be tired and missed something obvious, but I thought this should already get me to the next lesson. :frowning:

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


this is your problem that was here:

    def __init__(self,angle1,angle2,angl3):

is better to write link of course and error message in your topic in other help requests


Thank you! I could've sworn I spent enough time checking my spell, but I guess the 3 made me think there was an e there or something.

Oh, and I was just following the recommended format that the forum gave me. I'll do so next time. :slight_smile: