Ao colocar "conta = Conta(123, "Nico", 55.5, 1000)" no console Python ele apresenta esse erro pra mim:
Traceback (most recent call last):
File "C:\Users\Local\Programs\Python\Python39\lib\code.py", line 63, in runsource
code = self.compile(source, filename, symbol)
File "C:\Users\Local\Programs\Python\Python39\lib\codeop.py", line 178, in __call__
return _maybe_compile(self.compiler, source, filename, symbol)
File "C:\Users\Local\Programs\Python\Python39\lib\codeop.py", line 106, in _maybe_compile
class Conta:
def __init__(self, numero, titular, saldo, limite):
print("Contruindo objeto ... {}".format(self))
self.numero = numero
self.titular = titular
self.saldo = saldo
self.limite = limite
def extrato(self):
print("Saldo {} do titular {}".format(self.saldo, self.titular))
Alguem saberia me dizer onde eu estaria errando? Talvez importar algum item?