Aiphabet

>>>Task

Making a type of your own

Define a class Person whose __init__ takes name and age and stores both.

Then create two of them:

  • p1 — Toby, aged 16
  • p2 — Dumbledore, aged 115

The solution unlocks after a few minutes.

Editorstarting python
Ctrl + Enter
Output
Run your code to see the output.
Checks0 of 3 passing
  • Person exists and both people are instances of it
  • Both people carry the right name and age
  • __init__ stores its arguments