Computer Coding for Kids
Format: PDF / Kindle (mobi) / ePub
A simple visual guide to get kids computer coding in no time
Computer coding is firmly back on the agenda as a key skill for children to start learning. Computer Coding for Kids is a unique step-by-step guide, perfect for kids interested in computer programming and how computers work. Now available with text that lights up as you read along and playful images and sounds.
Avoiding computer jargon, this book guides children through creating computer programs starting with the very basics. Computer Coding for Kids is the only programming book that teaches both Scratch and Python programming languages, with illustrated, simple, step-by-step explanations that make the complex art of computer programming clear for the complete beginner. Starting with simple explanations of programming basics, it progresses to more advanced projects where children can build their own games.
Computer Coding for Kids is ideal for kids looking to take your first steps into programming or those that are already interested and hungry to learn more.
dance! for 2 secs Type in what you want the dinosaur to think – it will appear in a thought bubble 47 48 S TA R T I N G F R O M S C R AT C H Pens and turtles SEE ALSO 44–45 Events 46–47 Simple loops Each sprite has a pen tool that can draw a line behind it wherever it goes. To create a picture, turn on the pen and then move the sprite across the stage, like moving a pen across paper. Pen blocks pen down The dark green blocks are used to control the pen. Each sprite has its own pen
the block. 3 define jump Starts your block definition Use the block in a script The new block can now be used in any script. It’s as if those jumping blocks were in the script individually. 4 when clicked forever change y by 50 wait 1 secs Define the “jump” block in the scripts area The new block Jumps up jump The new block runs the jumping script that has already been defined wait 1 secs change y by -50 Drops down Waits 1 second before repeating the loop C R E AT I N G B L O C
4.6.3] on linux2 Type “copyright”, “credits” or “license()” for more information. >>> 92 P L AY I N G W I T H P Y T H O N Introducing IDLE SEE ALSO 88–91 Installing Python IDLE helps you write and run programs in Python. See how it works by creating this simple program that writes a message on the screen. Working in IDLE Different windows Python uses two different windows – the “shell” window and the “code” window (see pages 106–107). We’ve given them different colours to tell them
SEE ALSO 92–93 Introducing IDLE There are two different windows to choose from in IDLE. The code window can be used to write and save programs, while the shell window runs Python instructions straight away. 96–97 Ghost game The code window ▽ Running programs So far in this book, the code window has been used to write programs. You enter the program, save it, run it, and the output appears in the shell window. This process is used for running Python programs. Programs always have to
through every item in a list. This program says “Hello” to a series of names, one after the other. ◁ Adding lists Two lists can be added together. The new list will contain the items from both of the old lists. ▽ Lists in lists The items in a list can be lists themselves. The “suitcase” list below contains two lists of clothes – it is like a suitcase shared by two people, where they each pack three items. As the list is inside square brackets, it becomes an individual item within the