Karteikarten
Ohne Titel
Karten in diesem Stapel (9)
- 1Create an array called sports and list 3 sports in the square bracketssports = ["rugby", "volleyball", "cricket"]
- 2What is the command word used to add an element to an arrayappend
- 3What is the command word used to remove an element from an arrayremove
- 4What must you remember to do when removing or adding elements to arraysyou must put a dot in between the variable name and the command word and you must put brackets and speech marks around the value
- 5What is the command word used to find the position of an elementindex
- 6What is the command word to select a random element from an arraychoice
- 7What must you import to allow you to select a random element from an arrayrandom library module
- 8How do you see if an element is in an array or notask the user to input an element and use an if statement to see if it is part of the array
- 9What is the command word to find out how many elements are in an arraylen
Informationen
- Beschreibung
- Karteikarten am Ohne Titel, erstellt von Ben Donachie am 23/11/2020.
- Erstellt von
- Ben Donachie
- Aufrufe
- 0
- Bewertung