First page Back Continue Last page Overview Graphics

Continue...

class Philosopher1(metaclass=EssentialAnswers):

pass

class Philosopher2(metaclass=EssentialAnswers):

pass

class Philosopher3(metaclass=EssentialAnswers):

pass

plato = Philosopher1()

print(plato.the_answer())

kant = Philosopher2()

# let's see what Kant has to say :-)

print(kant.the_answer())

Ausgabe:

Do you need the answer? (y/n): y

42

42