Back

Python OOP Challenges / 1. Simple Class

00:00
1/20

1. Simple Class

Easy

Create a class called Person with attributes name and age. Create an instance and print the attributes.

  • 1

    Define a class with init method to initialize attributes.

PYTHON PLAYGROUND
PYTHON PLAYGROUND
⏳ Loading editor…