1
When I type this command in the console, it returns me an empty list. But if I create a file and have it executed, nothing appears, what happens? How should I do?
lista = []
x = 1
while x > 0:
x = int(input('digite um numero inteiro: '))
lista.append(x)
print (lista)
Your file is in the . py? extension You have tried typing without the accent on "I"?
– dfop02
Put your code in so we can see
– HelloWorld
Folks excuse me, I was forgetting a little detail, put the print before, see the code
– Leandro Sargi
How exactly are you creating the file and having it run?
– Pedro von Hertwig Batista