• Barajar
    Activar
    Desactivar
  • Alphabetizar
    Activar
    Desactivar
  • Frente Primero
    Activar
    Desactivar
  • Ambos lados
    Activar
    Desactivar
  • Leer
    Activar
    Desactivar
Leyendo...
Frente

Cómo estudiar sus tarjetas

Teclas de Derecha/Izquierda: Navegar entre tarjetas.tecla derechatecla izquierda

Teclas Arriba/Abajo: Colvea la carta entre frente y dorso.tecla abajotecla arriba

Tecla H: Muestra pista (3er lado).tecla h

Tecla N: Lea el texto en voz.tecla n

image

Boton play

image

Boton play

image

Progreso

1/34

Click para voltear

34 Cartas en este set

  • Frente
  • Atrás
List[-1]
Last item in the list
List.append(1)
Add "1" to the list
Lista[2:]
Will cut/slice the list from item 2 to the end
"panchis" in List
True/False if it is in the list
alien['color'] or alien.get('color')
gives the value of the dictionary
alien['x_position'] = 0
add to the dictionary
alien.items()
gives you all the items in a dictionary
alien.keys()
gives you all the keys in a dictionary
alien.values()
gives you all the values in a dictionary
List.insert(0, 'joe')
It insert joe in that list position
del users[-1] / users.pop()/ List.remove("Javi")
Delete from the list the last item
del alien['points']
Delete from the dictionary the key value
list.sort(reverse = true) / sorted(dictionaty)
set the list permanently/ dictionary temporarly ordered
i = min/max/sum(list)
provide the minimum, maximum,add
i = "javi".upper()
provide upper case
len(dictionary)
provide length
x = map(len, lista)
Apply len in all the list items
e = dict(reversed(d.items()))
the items of the dict are reversed
strng.split()
It will convert the string in a list where are spaces
string.replace(oldvalue, newvalue, count)
It'll replace old value for new value
print("n is %s and second n is %s" % (firstname, secondname))
print variables no strings without concatenation
d['employees'][1]['lastName']
Retuns value of a dict inside of a dict
import time
time.sleep(10)
Set a sleep
full_name = f"{first} {last}"
f-strings, concatenate whatever variable
range(1,11)
range from 1 to 10
in, not in
Conditional test with lists
float(1)
makes a number decimal
users.reverse()
Reversing the order of a list
x**2
square x
diccio = dict(zip(stocks, prices))
Join 2 list to create a dictionary
"topping != 'anchovies'
Checking for inequality
\n
next line
x = [break if city == 'quit']
stop the loop
.title()
return a string with the first letter of every word in uppercase