Many computer apps—contact lists, playlists, calendars of events, locations on a map, reminders—involve manipulating lists of information with tools that search, sort, or change the items on the list. In this first activity, you'll create a Shopping List app.
ask
and answer
blocks in Unit 2: Using Multiple If
Statements and Developing a Number Guessing Game.ask
the user for a new item, and then add the new item to the grocery list.You can use the add
or insert
list block to modify the list. Make sure it works.contains
to see if an item is already on the list.