Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Python Projects for Kids

You're reading from   Python Projects for Kids Unleash Python and take your small readers on an adventurous ride through the world of programming

Arrow left icon
Product type Paperback
Published in Apr 2016
Publisher Packt
ISBN-13 9781782175063
Length 192 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
 Ingrassellino Ingrassellino
Author Profile Icon Ingrassellino
Ingrassellino
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Python Projects for Kids
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
1. Welcome! Let's Get Started FREE CHAPTER 2. Variables, Functions, and Users 3. Calculate This! 4. Making Decisions – Python Control Flows 5. Loops and Logic 6. Working with Data – Lists and Dictionaries 7. What's in Your Backpack? 8. pygame 9. Tiny Tennis 10. Keep Coding! Quick Task Answers Index

Summary


In this chapter, you learned how to create your own lists and dictionaries. You also tried to perform some basic operations with lists and dictionaries, including how to add and remove data. Finally, you learned the syntax differences between lists and dictionaries as well as the optimal uses of lists and dictionaries.

In the next chapter, we are going to move forward and make a game called What's in my backpack? This game will be a simple, two-player game that will ask both users to put some objects into a backpack and then allow each user to guess what is in the other user's backpack.

We will write code to add items to a list, keep track of usernames, items, and scores in a list and dictionary, and then use a for loop to keep track of the game. There are a lot of moving parts in our next game, and it will be a lot of fun to make something that has two players! Are you ready? Let's go!

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £13.99/month. Cancel anytime
Visually different images