0
I have the following situation: A repeat loop that asks for name, and 2 notes, where the data input should end when an empty name is read, but in the way below the second time the program runs the name is not asked, some hint of how to do ?
nome = input("Nome: ")
while nome != "":
n1 = int(input("N1: "))
n2 = int(input("N2: "))
The
nome
is not being read inside thewhile
soon will never end as soon as it will never be asked again– Isac
Leaving the "name" inside the while I have the following problem: Nameerror: name 'name' is not defined
– João Carlos