Python Object-Oriented Python Instant Objects Your first class

Jake Williams
Jake Williams
1,368 Points

Object oriented python challenge

Not sure what its asking for exactly

first_class.py
class Student:
    name = 'Jake'
Student() = 'me'
print(me)

1 Answer

Peter Vann
MOD
Peter Vann
Treehouse Moderator 31,374 Points

Hi Jake!

This passes both tasks:

class Student(): # Task 1
    name = "Jake" # Task 1    

me = Student() # Task 2
print(me.name) # Task 2

I hope that helps.

Stay safe and happy coding!