Word Unscramble Challenge

In this challenge, we will create a Word Unscramble quiz where the computer will randomly pick up words from a given list, scramble the letters of the word, output the scrambled word (anagram) and ask the user to guess the original word. For each correct answer, the user will be given 1 point.


Here is the flowchart of our game:

Looking at the above flowchart, answer the following questions:

  • Where are the variables score and total initialised?
  • Where is the variable score incremented by 1?
  • Where is a list declared/initialised?
  • Where is iteration used and what for?
  • Where is selection used and what for?
  • Where is the subroutine/function scramble() called?
  • Where is an input statement used?
  • Where is string concatenation used?

Python Code

We have started the code for you and implemented the scramble() function.

Your task is to complete this code from line 29, following the steps identified in the above flowchart.



The solution for this challenge is available to full members!
Find out how to become a member:
➤ Members' Area

Did you like this challenge?

Click on a star to rate it!

Average rating 4.4 / 5. Vote count: 16

No votes so far! Be the first to rate this post.

As you found this challenge interesting...

Follow us on social media!

Tagged with: