¡GoConqr estrena diseño! Cuéntanos qué te parece.

Fichas

Computing Array Flash Cards

Cole Sutton Inglés 6 fichas

Fichas del conjunto (6)

  1. 1What is an element?The items in an array
  2. 2What is an array?A list of elements enclosed by square brackets
  3. 3What is meant by a position or an indexThe elements in an array each have a position, starting at 0. An index is used to search for a specific elements position in an array.
  4. 4Give an example of an array in Python.shoppingList = ["milk", "eggs", "bread"]
  5. 5How do you add or remove elements to an array in Python?shoppingList.append("rice")
    shoppingList.remove("eggs")
  6. 6How do you make an array code output a random response?1. import random
    2. dieNumbers = [1,2,3,4,5,6]
    3. dieRoll = random.choice(dieNumbers)
    4. print (dieRoll)

Información

Descripción
Fichas sobre Computing Array Flash Cards, creado por Cole Sutton el 09/12/2020.
Creado por
Cole Sutton
Visitas
0
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?