from Toolbox import * from Texte import * class User: def __init__(self): self.name = askUser(ask_name) self.age = askUserInt(ask_age) print(ask_sexual_preference) self.preference = wähleAusListe([gender_male, gender_female, gender_other]) def __str__(self): return self.name + str(self.age) + self.preference def do_action(self, action): if action == action_ask_age: print(blue(ask_age)) elif action == action_throw_book: print(blue(situation_throw_book)) elif action == action_introduce_self: print(blue("Hallo"))