Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialanthonybednarek
1,466 Pointspart 2 of first_class.py
So, the first part was straight forward. All you have to do is:
class Student: name = 'Tony'
However, the lecture didn't go into much depth about creating the instance, which in this case, is the instance me
class Student:
name = 'Tony'
1 Answer
adrian miranda
13,561 PointsIf you have a class called frog, you might declare it as:
class frog:
jumping = "high"
Then we might create an object (an instance of the class) very simply:
mrfrog = Frog()
So, in your class you would create one by calling Student()
and you store that in me