Python Object-Oriented Python Instant Objects Your first class

Adam Kroner
Adam Kroner
1,460 Points

Just beginning Instances...

Now, make an instance of your class named me.

Then print() out the name attribute of your instance.

What is wrong here?

first_class.py
class Student:
    name = "Adam"
    me = Student()
    print(me.name)
Itsa Snake
Itsa Snake
3,847 Points

Don't indent it. Take it out of the class

class Student:
    name = "Adam"
me = Student()
print(me)