Para crear una lista en Python, todo lo que tienes que hacer es escribir [].
To create a list in python, all you have to type is [].
Fíjate también que la salida de este programa tiene, en cada línea, una lista de Python que contiene una cadena como único elemento.
Also note that the output of the program is a Python list that has a string as the single element in the list.
Por ejemplo, el comando range que hemos usado crea una lista (python 2)
For example, the range command that we used creates a list (in python 2)
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.
Înregistrează-te pentru a accesa mai multe exemple