This is the core notebook.

say_hello[source]

say_hello(to)

Say hello to someone

say_hello("Sergi")
'hello Sergi'
test_eq(say_hello("Guillem"), "hello Guillem")
assert say_hello("Joana") == "hello Joana"

Clases

Same but clases

class hiSayer:
    "Dumb class that spams hi to someone"
    def __init__(self,to):
        self.to = to
        
    def say(self):
        "Calls function say_hello to say hello"
        return say_hello(self.to)

class hiSayer[source]

hiSayer(to)

Dumb class that spams hi to someone

hiSayer.say[source]

hiSayer.say()

Calls function say_hello to say hello

hiSayer says hi to whoever we want with the method say

sayer = hiSayer('Alex')
sayer.say()
'hello Alex'