gerar lista de um input
unknown
python
3 years ago
237 B
14
Indexable
#METODO 1 GERAR LISTA COM VIRGULA
op = input('DIGITE AS OPÇÕES: ').split(',')
print(op)
#METODO 2 GERAR LISTA COM LAÇO FOR OU WHILE:
lista = []
for i in range(3):
op = input('DIGITE AS OPÇÃO: ')
lista.append(op)
print(lista)Editor is loading...