Random Word
To play the game it is needed to choose one gameword
randomly from the word_list
. To do that we create choose_word_random
function.
Oppgave
Swipe to start coding
- Set the
choose_word_random
function using theword_list
as an argument. - Return random word from the
word_list
inside the function usingrandom.choice(...)
function. - Test the function using the
test_word_list
list.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 2
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Awesome!
Completion rate improved to 7.69
Random Word
Sveip for å vise menyen
To play the game it is needed to choose one gameword
randomly from the word_list
. To do that we create choose_word_random
function.
Oppgave
Swipe to start coding
- Set the
choose_word_random
function using theword_list
as an argument. - Return random word from the
word_list
inside the function usingrandom.choice(...)
function. - Test the function using the
test_word_list
list.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Awesome!
Completion rate improved to 7.69Seksjon 1. Kapittel 2
single