Let's get Travelling
🌍 Snap! Project: List of Countries - No need for a Passport
In this exercise, you’ll help Alonzo build a program to manage a list of countries that have been entered without a passport.
🛠️ What to Do:
-
Open the Project: Start by opening the Snap! project where you’ll begin your journey with lists:
-
Extend the Script: Once the project is open, extend the script under the green flag to create a list where countries can be added. You’ll program Alonzo to:
-
Ask for a country to be entered when the ‘+’ key is pressed.
-
Add each country to the list.
-
When the up arrow is pressed, Alonzo should say the number of countries in the list and display them in alphabetical order.
-
🔍 Need Help?
If you want to check out the completed project or get a hint for the solution, you can open the solution project here:
Feedback
We appreciate your feedback! It helps us continuously improve our course materials.