Save
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

Programming basics

QuestionAnswer
For para ir desde 0 hasta 10 incluido utilizando range for x in range(11):
For para recorrer los elementos de una lista list for x in list:
For para recorrer un string string for x in string:
If para saber si un elemento no está en una lista list if x not in list
len([0,1,2,3]) es igual a 4
a = [0,1,2,3] range(0,len(a)) que devuelve 0,1,2,3
For para recorrer un diccionario dict por medio de key y value for (key, value) in dict_items():
Obtener los elementos de diccionario dict dict.items()
Upper bound big Oh O
Tight bound Theta θ
Lower bound Omega Ω
Imprimir en pantalla print()
Pedir entrada al usuario input()
Imprimir string + variable print(f"Imprimo variable {var}")
Escoger elemento random de una lista list random.choice(list)
Escoger elemento random de un rango desde 0 hasta 10 incluidos ambos, tanto con una lista como con randint random.choice(range(0,11)) random.randint(0, 10)
Crear una funcion sin argumentos def function():
Crear una funcion con argumentos a y b (sin valores predeterminados) def function(a, b):
Crear una funcion con argumentos a y b (con valores predeterminados de 0) def function(a=0, b=0):
Definir un diccionario dict sin valores dict = {}
Agregar un elemento a dict con valores key="a" value=1 dict["a"]=1
Definir un dictionario dict con valores key="a" value=1 y key="b" value=2 dict = {"a":1, "b":2}
Python list comprehension final value = [0,2,4,6] list = [x for x in range(0,7,2)] list = [x for x in range(0,7) if x%2 == 0] list = [x*2 for x in range(0,4)]
Python dict comprehension final value = ["a":0,"c":2,"e":4,"g":6] dict = {"a":0, "b":1, "c":2, "d":3, "e":4, "f":5, "g":6} dict = {"a":0, "b":1, "c":2, "d":3, "e":4, "f":5, "g":6} dict = {key:value for (key,value) in dict.items() if value%2==0}
definir función con argumentos como tupla def sum(*args): se accede con for
definir función con argumentos como diccionario def sum(**kwargs): se accede como diccionario
remove last element of list "list" python list.pop()
Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. Diccionario con valores esperados Usar lista como stack Recordar revisar que stack quede vacia y que no esté vacía mientras se revisa
nums = [1,2,3,1] set(nums) = ? {1,2,3}
Ordenar list list.sort() --> ordena list sorted(list) --> ordena list y la devuelve para asignar en variable
Ordenar string sorted(string)
Encontrar el string más pequeño de una lista "strs" smaller_word = min(strs,key=len) strs.sort() smaller_word = strs[0]
What an API? Application Programming Interface (API): Commands, functions, protocols and objects that programmers can use to create software or interact with an external system
What is JSON? JavaScript Object Notation A JSON file stores data in key-value pairs and arrays
HTML: <p></p> Parrafo
HTML: <hr /> Separación, horizontal rule
HTML: <br /> Rompe un parrafo, salto de línea
HTML: <h1></h1> ... <h7></h7> Headings
HTML Boilerplate Estructura básica de una página web
HTML: <ul><\ul> Unorder list
HTML: <li><\li> List items
HTML: <ol><\ol> Order list
HTML: <img src"url" /> Image
HTML: <a href=" Udemy</a> Hyperlink
HTML: <img src="link" alt"description">
CSS Cascading Style Sheet
Created by: learayac
Popular Engineering sets

 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards