The program must receive values in a quantity specified by the user. I need a list created with these values. Why this code does not work?
quantidade = int(raw_input())
inicio = 0
lista1 = list()
while inicio < quantidade:
valor = int(raw_input())
inicio = inicio + 1
lista2 = lista1.append(valor)
print lista2