listas en python code example
Example 1: listas en python
>>> factura = ['pan', 'huevos', 100, 1234]
>>> factura
['pan', 'huevos', 100, 1234]
Example 2: sacar la posicion en una lista python
>>> xs.index(78455)
0
>>> xs.index(47890)
4
>>> factura = ['pan', 'huevos', 100, 1234]
>>> factura
['pan', 'huevos', 100, 1234]
>>> xs.index(78455)
0
>>> xs.index(47890)
4