> For the complete documentation index, see [llms.txt](https://science-world.gitbook.io/variable-stories-with-scract/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://science-world.gitbook.io/variable-stories-with-scract/activities/learner-challenge-3.md).

# Learner Challenge 3

**Open this sample code by clicking the&#x20;**<mark style="color:blue;">**See inside**</mark>**&#x20;button:**  <http://scratch.mit.edu/projects/387119856>

Or build the code below:

![](https://263142761-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmwVbnBfryEwHBRnI3as7%2Fuploads%2FNyiqrNg7jAcwG7isuoI1%2FVariable%20Stories%20Student%20Challenge%203.png?alt=media\&token=a402ff30-4c98-4a2f-bfa8-980291949f44)

Here are things to notice:

The light blue <mark style="color:blue;">**sensing**</mark> block called **ask** causes the sprite to ask a question and wait for the player to type in an answer.&#x20;

We used the **Variables** block called <mark style="color:orange;">**set**</mark> to assign the player’s answer to the variable called “noun”.

The sprite tells the story when the player presses the space bar. The word the player gave as their answer appears in the story.&#x20;

**Your task:**

1\.      Click the green flag again, but give a different answer. See how the story changes.

2\.      Add code blocks to make the sprite ask for more words.  You’ll need to create more variables.

3\.      Can you create a code that matches the story you wrote in challenge 2?

**Extend:** Set the scene for your story. Have your sprite tell the story to another sprite. Can you add an ask block that gets a number and have your sprite move that many steps during your story?

**Reflect:**

·         How might you express yourself in writing and in coding?

·         What parts of this challenge were difficult?

·         How often did you test your code? What purpose did testing serve?

·         What advice might you give to someone who is trying this challenge for the first time?

·         Describe your thought process in creating this code.
