It's the core of the Borja's tutorial.

functions

say_hi[source]

say_hi(to)

Say hi to someone

say_hi('Max')
Hi Max!
test_eq(say_hi('Max'), 'Hi Max!')
test_eq??

classes

Same but with classes

class hiSayer:
    
    def __init__(self, to):
        self.to = to
        
    def say(self):
        """calls fn `say_hi`"""
        return say_hi(self.to)

class hiSayer[source]

hiSayer(to)

hiSayer.say[source]

hiSayer.say()

calls fn say_hi

sayer = hiSayer('Maximilian')
sayer.say()
'Hi Maximilian!'