Question from the Python test

What is missing in the class `A` to create the sentence "My train rolls!" in the code below?

Medium

Que manque-t-il à la classe A pour créer la phrase "Mon train roule !" dans le code ci-dessous ?

class Mixin:
    def __init__(self, text):
        self.text = text


class A(Mixin):
    pass


class B(Mixin):
    pass


result = A('Mon train') & B('roule !')
Author: John PendenqueStatus: PublishedQuestion not yet passed
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!