Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Random Word | Game Word
/
Beginner Final Project: Hangman
Sektion 1. Kapitel 2
single

single

bookRandom Word

Stryg for at vise menuen

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.

Opgave

Swipe to start coding

  1. Set the choose_word_random function using the word_list as an argument.
  2. Return random word from the word_list inside the function using random.choice(...) function.
  3. Test the function using the test_word_list list.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 2
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

some-alt