Teach Your Kids To Code: A Parent-friendly Guide to Python Programming

(vip2019) #1

6


Random Fun and Games: Go ahead, take a Chance!


In Chapter 5, we programmed the computer to make


decisions based on conditions. In this chapter, we’ll


program the computer to pick a number between 1


and 10, to play Rock-Paper-Scissors, and even to roll


dice or pick a card!

Free download pdf