In Scratch, you can make a list so when you make a sprite say one, it says all the items on the list!

First, when you add your green flag, go into the Data section and click ‘Make a List’ then type in ‘shopping list’ for the name and click OK.

Then, go to the Sensing section and add the ‘ask [What’s your name?]’ block to the script, but change it to ‘ask [What do you want to add to the shopping list?]’

After that, go to the Data section and then add ‘add [thing] to shoppinglist’,

Change the [thing] to <answer> from Sensing,

Cliack the green flag and input what you want to add. For an extra challenge, make the sprite say the items on the list!

Leave a Reply

Your email address will not be published. Required fields are marked *