This is my program and what means this error?
def menuAdiciona():
nome = input("Digite o nome de quem fez o cafe: ")
nota = int(input("Que nota recebeu: "))
if len(nome.strip()) == 0:
menuAdiciona()
if len(nota.strip()) == 0:
menuAdiciona()
if nota < 0:
nota = 0
AttributeError: 'int' object has no attribute 'strip'
.
You are trying to call strip()
on the nota
value, which is an integer. Don't do that.