Richardson, Craig.

Adventures in Python. - Somerset : Wiley, 2015. - 1 online resource (282 p.) - eBooks on Demand Adventures In ... . - Adventures In ... .

Title Page -- Copyright Page -- Publisher's Acknowledgments -- About the Author -- Acknowledgments -- Contents -- Introduction -- What Is Programming? -- What Is Python and What Can You Do With It? -- Who Should Read This Book? -- What You Will Learn -- What You Will Need for the Projects -- How This Book Is Organised -- Setting Up Python -- Windows 8 -- Installing -- Opening -- Windows 7 -- Installing -- Opening -- Mac OS X -- Installing -- Opening -- Linux (Ubuntu) -- Installing -- Opening -- Raspberry Pi -- Installing -- Opening -- Creating Your First Program -- The Companion Website Conventions -- Reaching Out -- Adventure 1 Diving into Python -- What Is Programming? -- Opening IDLE -- Returning to Your First Python Program -- It Isn't Working-Grrr! -- Using a File Editor -- Asking Questions with Variables -- A Bit About Variables -- Using Variables for a Fill-in-the-Blanks Story -- Making the Program Make Decisions: Conditionals -- Using if Statements -- Nested if Statements -- Creating an Imaginary Vending Machine -- Repeating Code with Loops -- Using while Loops -- Infinite while Loops -- Praise Generator -- A Bigger Adventure: Spaceship Control Console Set-Up and Password -- Using the Console to Do Things -- Adventure 2 Drawing with Turtle Graphics -- Getting Started with Turtle -- Using Variables to Change Angles and Lengths -- Using Addition to Draw a Spiral -- Saving Some Space with Loops -- A Shape with 360 Sides: Drawing a Circle -- Controlling the Number of Sides Using for Loops -- Changing the Fill Colour in a Shape -- Creating Functions to Reuse Your Code -- Shape Presets -- Adding Randomly Generated Pictures -- Adventure 3 Windows, Buttons, and Other GUI Stuff -- Creating Buttons -- Changing the Button Text on Click -- Counting Clicks Creating Text Boxes -- Writing It Backwards -- Adding Passwords -- Building a Random Sentence Generator -- Programming a Guessing Game -- Adventure 4 More GUI Elements with Tkinter -- Creating Sliders -- How Colours Work on Computers and as Hexadecimal Values -- Changing the Canvas Colour -- Making the Colour Picker -- Adding a Text Box -- Creating a Click Speed Game -- Adventure 5 Drawing Shapes with PyGame -- Installing PyGame -- My First PyGame -- Creating Rectangles -- Creating a Rectangle -- A Rainbow of Rectangles -- Colour Grid -- Creating Ellipses -- Wobbling Circle -- Saving Your Images Saving a Single Image -- Saving a Series of Images -- Adventure 6 Adding Keyboard Input with PyGame -- Using Keyboard Input -- Other Keys You Can Use -- Creating the Game -- Introducing Full Movement -- Moving the Player Offscreen -- Adding the Ball -- Creating Collisions -- Goal! -- Adding a Time Limit -- Adventure 7 Creative Ways to Use a Mouse with PyGame -- Getting the Mouse Position -- Making a Button -- Moving Target -- Exploding Clicks -- Making a Mesh -- Creating Mouse Trails -- Adventure 8 Using Images with PyGame -- Loading an Image -- Layering Images -- Randomly Layering Images Adding a Moustache to a Photograph

The complete beginner's guide to Python, for young people who want to start today Adventures in Python is designed for 11-to 15-year olds who want to teach themselves Python programming, but don't know where to start. Even if you have no programming experience at all, this easy to follow format and clear, simple instruction will get you up and running quickly. The book walks you through nine projects that teach you the fundamentals of programming in general, and Python in particular, gradually building your skills until you have the confidence and ability to tackle your own proj

9781118951859 37.43 (NL),37.43 (3U),24.95 (1U)


Application software -- Development.
Object-oriented programming (Computer science).
Python (Computer program language).


Electronic books.

QA76.73.P98 -- .R534 2015eb

005.133