close menu
Bookswagon-24x7 online bookstore
close menu
My Account
42%
Adventures in Python: (Adventures In ...)

Adventures in Python: (Adventures In ...)

          
5
4
3
2
1

International Edition


Premium quality
Premium quality
Bookswagon upholds the quality by delivering untarnished books. Quality, services and satisfaction are everything for us!
Easy Return
Easy return
Not satisfied with this product! Keep it in original condition and packaging to avail easy return policy.
Certified product
Certified product
First impression is the last impression! Address the book’s certification page, ISBN, publisher’s name, copyright page and print quality.
Secure Checkout
Secure checkout
Security at its finest! Login, browse, purchase and pay, every step is safe and secured.
Money back guarantee
Money-back guarantee:
It’s all about customers! For any kind of bad experience with the product, get your actual amount back after returning the product.
On time delivery
On-time delivery
At your doorstep on time! Get this book delivered without any delay.
Quantity:
Add to Wishlist

About the Book

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 projects. Video clips accompany each chapter to provide even more detailed explanation of important concepts, so you feel supported every step of the way.

Python is one of the top programming languages worldwide, with an install base in the millions. It's a favourite language at Google, YouTube, the BBC, and Spotify, and is the primary programming language for the Raspberry Pi. As an open-source language, Python is freely downloadable, with extensive libraries readily available, making it an ideal entry into programming for the beginner. Adventures in Python helps you get started, giving you the foundation you need to follow your curiosity.

  • Start learning Python at its most basic level
  • Learn where to acquire Python and how to set it up
  • Understand Python syntax and interpretation for module programming
  • Develop the skills that apply to any programming language

Python programming skills are invaluable, and developing proficiency gives you a head start in learning other languages like C++, Objective-C, and Java. When learning feels like fun, you won't ever want to stop – so get started today with Adventures in Python.



Table of Contents:

Introduction 1

Adventure 1

Diving into Python 23

What Is Programming? 24

Opening IDLE 25

Returning to Your First Python Program 26

It Isn’t Working—Grrr! 28

Using a File Editor 30

Asking Questions with Variables 33

A Bit About Variables 35

Using Variables for a Fill-in-the-Blanks Story 37

Making the Program Make Decisions: Conditionals 39

Using if Statements 39

Nested if Statements 41

Creating an Imaginary Vending Machine 43

Repeating Code with Loops 45

Using while Loops 45

Infinite while Loops 47

Praise Generator 48

A Bigger Adventure: Spaceship Control Console 50

Set-Up and Password 50

Using the Console to Do Things 52

Adventure 2

Drawing with Turtle Graphics 57

Getting Started with Turtle 57

Using Variables to Change Angles and Lengths 61

Using Addition to Draw a Spiral 64

Saving Some Space with Loops 65

A Shape with 360 Sides: Drawing a Circle 67

Controlling the Number of Sides Using for Loops 68

Changing the Fill Colour in a Shape 71

Creating Functions to Reuse Your Code 72

Shape Presets 75

Adding Randomly Generated Pictures 76

Adventure 3

Windows, Buttons, and Other GUI Stuff 83

Creating Buttons 84

Changing the Button Text on Click 87

Counting Clicks 88

Creating Text Boxes 90

Writing It Backwards 92

Adding Passwords 93

Building a Random Sentence Generator 96

Programming a Guessing Game 99

Adventure 4

More GUI Elements with Tkinter 105

Creating Sliders 105

How Colours Work on Computers and as Hexadecimal Values 109

Changing the Canvas Colour 111

Making the Colour Picker 113

Adding a Text Box 116

Creating a Click Speed Game 117

Adventure 5

Drawing Shapes with PyGame 123

Installing PyGame 123

My First PyGame 124

Creating Rectangles 127

Creating a Rectangle 127

A Rainbow of Rectangles 128

Colour Grid 131

Creating Ellipses 133

Wobbling Circle 133

Saving Your Images 135

Saving a Single Image 135

Saving a Series of Images 136

Adventure 6

Adding Keyboard Input with PyGame 139

Using Keyboard Input 140

Other Keys You Can Use 142

Creating the Game 142

Introducing Full Movement 146

Moving the Player Offscreen 148

Adding the Ball 150

Creating Collisions 152

Goal! 154

Adding a Time Limit 157

Adventure 7

Creative Ways to Use a Mouse with PyGame 161

Getting the Mouse Position 161

Making a Button 163

Moving Target 166

Exploding Clicks 169

Making a Mesh 172

Creating Mouse Trails 175

Adventure 8

Using Images with PyGame 181

Loading an Image 181

Layering Images 184

Randomly Layering Images 186

Adding a Moustache to a Photograph 188

Making Sprites 191

Creating a Walking Animation 191

Walking in All Directions 195

Teleportation 197

Adventure 9

Using Sounds and Music with PyGame 203

Playing Sounds 203

Creating a Noise Loop 205

Making Keyboard Sound Effects 207

Using Music with Python 210

Playing Music 210

Adding Volume Tremolo 212

Making a Music Player 215

Adding Sounds and Music to a Game 218

Adventure 10

Your Really Big Adventure 223

Writing the Program for the Game 224

Setting Up the Files 224

Making the Game 225

Walls 226

Doors, Collisions and Coins 229

Setting Up the Window and Variables 231

Adding the Game Loop 234

Character Controls and Animations 234

Player Collisions and Collecting Coins 237

Displaying Points and Updating the Window 237

Playing the Game 238

Debugging the Game 239

Summary 240

Appendix A

Installing and Downloading the Proper Files 243

Installing PyGame 243

Windows 8 243

Windows 7 245

Mac 245

Linux (Ubuntu) 247

Raspberry Pi 248

Downloading the Files for Adventures 8, 9 and 10 248

Windows 8 248

Windows 7 249

Mac 249

Linux (Ubuntu) 250

Raspberry Pi 250

Glossary 251

Index 257


Best Seller

| | See All

Product Details
  • ISBN-13: 9781118951798
  • Publisher: John Wiley & Sons Inc
  • Publisher Imprint: John Wiley & Sons Inc
  • Depth: 13
  • Language: English
  • Returnable: N
  • Spine Width: 13 mm
  • Width: 183 mm
  • ISBN-10: 1118951794
  • Publisher Date: 08 May 2015
  • Binding: Paperback
  • Height: 231 mm
  • No of Pages: 288
  • Series Title: Adventures In ...
  • Weight: 524 gr


Similar Products

How would you rate your experience shopping for books on Bookswagon?

Add Photo
Add Photo

Customer Reviews

REVIEWS           
Be The First to Review
Adventures in Python: (Adventures In ...)
John Wiley & Sons Inc -
Adventures in Python: (Adventures In ...)
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Adventures in Python: (Adventures In ...)

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book
    Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals

    | | See All


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!
    ASK VIDYA