## With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

No credit card required

## Book Description

Learn to Program with Minecraft is a kid-friendly introduction to customizing Minecraft with Python programming.

1. Cover Page
2. Title Page
6. Brief Contents
7. Contents in Detail
8. Acknowledgments
9. Introduction
1. Setting Up Your Windows PC
3. Setting Up Your Raspberry Pi
4. Getting to Know IDLE
5. Testing Your Minecraft Python Setup
11. Chapter 2: Teleporting with Variables
1. What Is a Program?
2. Storing Data with Variables
3. Slowing Down Teleportation Using the time Module
4. Debugging
5. What You Learned
12. Chapter 3: Building Quickly and Traveling Far with Math
1. Expressions and Statements
2. Operators
3. Exponents
4. Parentheses and Order of Operations
5. Handy Math Tricks
6. What You Learned
13. Chapter 4: Chatting with Strings
1. What Are Strings?
2. The print() Function
3. The input() Function
4. Joining Strings
5. Converting Strings to Integers with int()
6. Bounce Back from Errors
7. What You Learned
14. Chapter 5: Figuring Out What’s True and False with Booleans
1. Boolean Basics
2. Concatenating Booleans
3. Comparators
4. Logical Operators
5. What You Learned
15. Chapter 6: Making Mini-Games with if Statements
1. Using if Statements
2. Using if Statements to Test a Range of Values
3. Boolean Operators and if Statements
4. What You Learned
16. Chapter 7: Dance Parties and Flower Parades with while Loops
1. A Simple while Loop
2. Controlling Loops with a Count Variable
3. Fancy Conditions
4. Ending a while Loop with break
5. What You Learned
17. Chapter 8: Functions Give You Superpowers
2. Using if Statements and while Loops in Functions
3. Global and Local Variables
4. What You Learned
18. Chapter 9: Hitting Things with Lists and Dictionaries
1. Using Lists
2. Manipulating Lists
3. Treating Strings like Lists
4. Tuples
5. Other Useful Features of Lists
6. Dictionaries
7. What You Learned
19. Chapter 10: Minecraft Magic with for Loops
1. A Simple for Loop
2. Other List Functions
3. Looping Over a Dictionary
4. for-else Loops
5. Nested for Loops and Multidimensional Lists
6. What You Learned
1. Using Files
2. Using Modules
3. Storing Lots of Data with the shelve Module
4. Installing New Modules with pip
5. Using a Module from pip: Flask
6. What You Learned
21. Chapter 12: Getting Classy with Object-Oriented Programming
1. Object-Oriented Basics
2. Creating a Class
3. Understanding Methods
4. Returning Values with Methods
5. Creating Multiple Objects
6. Class Attributes
7. Understanding Inheritance
8. Overriding Methods and Attributes
9. What You Learned
22. Afterword
23. Block ID Cheat Sheet
24. Index
25. More Smart Books for Curious Kids!
26. Resources
27. Requirements