Python
Exercise 4 / 15
Object-Oriented Programming
Hard
30 points
Create a Person class with a __init__ constructor that takes name and age, then create a person1 object.
OOP allows creating classes and objects. A class is a template, an object is an instance. The __init__ constructor is called when creating an object.
Well done! 🎉
Your answer is correct! You earned 30 points.
Not quite...
Try again! You can do it.
Your code
Python
Result