1def create_class():
2 class Person:
3 def __init__(self, name, age):
4 self.name = name
5 self.age = age
6
7 # returns the class NOT an instance of the class
8 # instance would be Person()
9 return Person
10
11my_class = create_class()
12person1 = my_class("John", 24)
13
14print(f'{person1.name} is {person1.age} years old.')