class Spiller: def __init__(self, symbol): if symbol !='X' and symbol != 'O': print("Ugyldig symbol!") else: self._symbol = symbol def hent_symbol(self): return self._symbol