Fichas
Computing - Flashcards about arrays
Fichas del conjunto (6)
- 1Create an array of stringsvariable = ["item1", "item2", "item3"...]
- 2Add an element to an arrayvariable.append("item4")
- 3Remove an element from an arrayvariable.remove("item1")
- 4Find the position of an element in an arrayposition = variable.index("item2")
- 5Choose a random element from the arrayrandItem = random.choice(variable)
- 6Search for an element in an arrayuserItem = input("Find an item")
if userItem in variable:
Información
- Descripción
- Fichas sobre Computing - Flashcards about arrays, creado por Kyle Dewfall el 19/11/2020.
- Creado por
- Kyle Dewfall
- Visitas
- 16
- Valoración