# Learner Challenge 1

### **Review the definitions and examples for the following parts of speech:**&#x20;

**Noun, Adjective, Verb, Adverb**&#x20;

Here’s an excerpt from a book called “Neil Flambé and the Marco Polo Murders” by Kevin Sylvester.  Are the highlighted words nouns, verbs, adjectives or adverbs?&#x20;

Antonio <mark style="background-color:orange;">stepped</mark> inside the vault, letting the door almost close behind him.  Then he <mark style="background-color:orange;">gently</mark> lifted the edge of an <mark style="background-color:orange;">ornate</mark> Persian rug.  Underneath was a <mark style="background-color:orange;">trapdoor</mark>.  The second key opened that.&#x20;

Resting inside the <mark style="background-color:orange;">secret</mark> compartment was a golden <mark style="background-color:orange;">box</mark>.  It was decorated with emerald-eyed angels and mermaids, delicately wrought sundials, <mark style="background-color:orange;">diamond-studded</mark> wind roses and carved sailing ships.  Any thief who’d managed to get this far would <mark style="background-color:orange;">grab</mark> the beautiful box, thinking it was the <mark style="background-color:orange;">treasure</mark>.  That, however, would be a mistake.  The box was <mark style="background-color:orange;">bolted</mark> to the floor; tugging it would release a spring-loaded <mark style="background-color:orange;">knife</mark>.&#x20;

&#x20;

**Offline task:**&#x20;

1. Make a chart with at least 5 nouns, 5 verbs, 5 adjectives, 5 adverbs  &#x20;

| Adjective | Noun      | Verb  | Adverb  |
| --------- | --------- | ----- | ------- |
| Tall      | Pineapple | Dance | Happily |

&#x20;

&#x20; 2\. Create at least five (silly) sentences by picking words from your chart and using this format:&#x20;

**The    \[ADJECTIVE]     \[NOUN]      \[VERB]     \[ADVERB].**&#x20;

In the format sentence, the capitalized words are like boxes with labels that you can put a certain kind of stuff into. Here you can put words in the “boxes” to make new sentences.  &#x20;

In coding, these labelled boxes are called variables.  When we put stuff into the boxes we call it “assigning a value to the variable”.  We use the variable’s label to tell the computer what to do with the contents.  &#x20;

**Online Task:**&#x20;

In Scratch, you can make your own variables (and choose names for them) using the orange <mark style="color:orange;">**Variables**</mark> button. &#x20;

1. Use **“make a variable”** to create a variable called “name”.&#x20;
2. Drag the <mark style="color:orange;">**set**</mark> block onto the canvas and set “name” to your name. Coders call this *assigning a value to the variable.* In my code below, I assigned the value “Sandy” to the variable “name”.&#x20;
3. Use the dark purple <mark style="color:purple;">**Looks**</mark> button to find the <mark style="color:purple;">**say**</mark> block.  You’ll need two of them.&#x20;

![](https://263142761-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmwVbnBfryEwHBRnI3as7%2Fuploads%2FAZ57gSXkRyWd7kZxU7pZ%2FStudent%20Challange%201.png?alt=media\&token=24d1cfa2-af3c-48a9-a292-9d67b01ef16b)

1. Replace Hello! In the second <mark style="color:purple;">**say**</mark> block with the **variable** “name”.  Add an <mark style="color:yellow;">**event**</mark> block to tell your code when to run. &#x20;
2. When you click the green flag, your sprite will say hello to you!  Try changing the <mark style="color:orange;">**set**</mark> block so that it says hello to other people.&#x20;

**Extend:** Add a second sprite. Can you use assign a number to a variable and have your sprite walk that many steps before saying hi to your new sprite using their name?&#x20;

**Reflect:**&#x20;

* What else could you use variables for in this code? In your life?&#x20;
