Muutke küpsiste eelistusi

Python for Teenagers: Learn to Program like a Superhero! 1st ed. [Pehme köide]

  • Formaat: Paperback / softback, 321 pages, kõrgus x laius: 254x178 mm, kaal: 662 g, 55 Illustrations, black and white; XXIII, 321 p. 55 illus., 1 Paperback / softback
  • Ilmumisaeg: 08-May-2019
  • Kirjastus: APress
  • ISBN-10: 1484245490
  • ISBN-13: 9781484245491
Teised raamatud teemal:
  • Pehme köide
  • Hind: 43,74 €*
  • * saadame teile pakkumise kasutatud raamatule, mille hind võib erineda kodulehel olevast hinnast
  • See raamat on trükist otsas, kuid me saadame teile pakkumise kasutatud raamatule.
  • Kogus:
  • Lisa ostukorvi
  • Tasuta tarne
  • Lisa soovinimekirja
  • Formaat: Paperback / softback, 321 pages, kõrgus x laius: 254x178 mm, kaal: 662 g, 55 Illustrations, black and white; XXIII, 321 p. 55 illus., 1 Paperback / softback
  • Ilmumisaeg: 08-May-2019
  • Kirjastus: APress
  • ISBN-10: 1484245490
  • ISBN-13: 9781484245491
Teised raamatud teemal:
Discover everything you need to know about Python to turn your passion of programming into a job you'll love. Fueled by fun and practical examples, this book gives high schoolers who want learn an easy programming language ideas for how to leverage them in the workforce. 

Start with the basics and before you know it, you'll be building your own web sites, doing white-hat hacking, finding code bugs and errors, and creating games, including using Python to roll characters for RPGs. Every chapter is relaxed and informal, like learning with a cool teacher all the time. 

Computers, phones and the web are your playground, and you'll be ready to join the party with your own content. Going beyond posts and uploads means learning to program, and Python is a great choice to get started. It's quick to learn, it's flexible, and if you want, it may get you a Python job that pays more than minimum wage when you're out of school. Python for Teenagers is the most fun you'll have while learning.

What You'll Learn
  • Review programming basics - you gotta start somewhere
  • Code applications that follow directions and make decisions
  • Understand Classes and objects - when a program is a child
  • Make games with graphics and animation
Who This Book Is For

High schoolers who want learn an easy programming language. 



About the Author xiii
About the Technical Reviewer xv
Acknowledgments xvii
Introduction xix
Chapter 1 Introduction to Computer Programming and Python 1(16)
Programming Language Overview
2(1)
Python Overview
2(1)
How Does Python Differ from Other Programming Languages?
3(1)
The Benefits of Python
3(2)
Examples of Python in the Wild
5(1)
Your First Python Program
6(1)
Installing Python
7(8)
Installing Python on Windows
7(8)
Installing Python on Other Operating Systems
15(1)
In This Episode!
16(1)
Chapter 2 It All Adds Up 17(20)
Operator Precedence
18(4)
Data Types: Know Your Enemy
22(3)
Converting Number Data Types
25(1)
What Are Variables?
26(3)
Super Hero Generator 3000
29(4)
In This Episode!
33(4)
Chapter 3 String Things Along 37(22)
Leave Your Comments at the Door
37(4)
Block Commenting
39(1)
Inline Commenting
40(1)
Other Uses for Commenting
40(1)
Texting - Without Your Phone
41(18)
Working with Strings and Variables
43(2)
Longer Strings
45(1)
Strings on Multiple Lines
46(1)
Formatting Strings
46(3)
Introducing a New Weapon to Your Arsenal: Lists
49(3)
Changing Lists
52(2)
Other List Methods
54(2)
In This Episode!
56(3)
Chapter 4 Making Decisions 59(22)
Making Decisions
60(1)
Conditional Statements
61(20)
Behold - The If Statement!
62(3)
Boolean Logic and Comparison Operators
65(2)
Else Statements
67(2)
Else If Statements
69(3)
Logical Operators
72(3)
Nesting - Not Just for the Birds
75(3)
In This Episode!
78(3)
Chapter 5 Loops and Logic 81(18)
What Are Loops?
81(18)
Limiting Loops
86(1)
For Loops
87(4)
More Fun with For Loops
91(2)
Break, Continue, and Pass Statements
93(3)
In This Episode!
96(3)
Chapter 6 Using What We've Learned 99(22)
Creating Your First Real Program
99(22)
Importing Modules
100(1)
Creating Our Variables
101(1)
Defining Our Lists
101(1)
Introductory Text and Accepting Input from the User
102(1)
Creating Suspense!
103(2)
Randomizing Super Hero Names
105(2)
A Quick Check-in 4
107(2)
Randomizing the Super Powers
109(3)
Finishing Our Program
112(3)
The superHeroGenerator3000 Code - Completed!
115(6)
Chapter 7 Saving Time with Functions, Modules, and Built-ins 121(20)
Defining Modules
122(9)
Built-ins
122(4)
Packages
126(2)
Creating Your Own Module
128(3)
Common Built-in Functions
131(6)
String Functions
131(6)
Practice Your New Functions
137(2)
String Function Examples
137(1)
Number Function Examples
138(1)
In This Episode!
139(2)
Chapter 8 Using Classes and Objects 141(32)
What Is 00P?
141(32)
What Are Classes (And Will I Be Graded?)
142(1)
What Are Objects
143(1)
Creating Our First Class
143(2)
Creating Our First Object
145(1)
Improving the Super Hero Generator 30001
146(8)
Inheritance, Subclasses, and Morel
154(8)
Adding the Bells and Whistles
162(4)
The New and Improved Super Hero Generator 3000 Code!
166(5)
In This Episode!
171(2)
Chapter 9 Introducing Other Data Structures 173(26)
More Data Structures
174(25)
What Are Tuples?
175(4)
The Tuple Functions
179(3)
More Fun with Tuples
182(3)
Tuple Examples
185(3)
Working with Dictionaries
188(2)
Dictionary Methods
190(1)
More Fun with Dictionaries
191(3)
Other Dictionary Methods
194(1)
Example Dictionary Code
195(2)
In This Episode!
197(2)
Chapter 10 Python Files 199(24)
Working with Files in Python
200(23)
File Types
202(1)
Creating a Text File in Python Code
203(2)
Reading Files in Python
205(3)
A Warning About Reading and Writing to Files
208(1)
Appending to Files
209(2)
Working with Directories
211(6)
Bonus Round!
217(1)
FunWithFiles.py Code
218(2)
Working With Directories.py
220(1)
In This Episode!
221(2)
Chapter 11 Python for Gaming 223(34)
Python for Gaming
224(33)
Types of Games You Can Code in Python
225(1)
Pygame Introduction
225(1)
Installing Pygame
226(1)
Setting Up the Pygame Bare Bones for a Game
227(1)
Adding to Our Game Skeleton
228(3)
Adding Images and Sprites in Pygame
231(5)
Adding Text to Our Pygame Game Window
236(4)
Drawing Shapes in Pygame
240(4)
Adding More Events
244(10)
In This Episode
254(3)
Chapter 12 Animating Games 257(20)
Creating Animations in Pygame
257(7)
Collision Detection: Bouncing off the Walls
264(1)
Collision Detection: Detecting the Window Boundaries
265(4)
Colliding Two Objects
269(6)
In This Episode!
275(2)
Chapter 13 Error Handling 277(20)
Finding Errors
278(4)
Types of Errors
282(6)
Syntax Errors
282(1)
Logical Errors
283(2)
Exceptions
285(2)
The Try Except Else Block
287(1)
Using Finally
288(1)
Creating Custom Exceptions
289(2)
Logging
291(3)
Debugging Tools in Python
294(1)
One Final Tip for Handling Errors
295(2)
In This Episode!
295(2)
Chapter 14 Python Career 297(20)
Working with Python
299(1)
Career Paths for Python
299(5)
Beta Tester
300(1)
Code Debugger/Bug Locator
300(1)
Data Scientists
301(1)
Software Developer/Software Engineer
301(1)
Video Game Programmer
301(1)
Mobile Development
302(1)
Web Development and Web Applications
303(1)
System Administration
303(1)
Research, Teaching, and More
303(1)
Common Python Interview Questions
304(2)
Can You Tell Me Some of the Key Features of Python?
304(1)
What Is the Difference Between a Tuple and a List
305(1)
What Is Inheritance?
305(1)
How Do You Generate Random Values in Python?
305(1)
How Do You Create a List, Tuple, and Dictionary in Python
306(1)
What Is the Difference Between a Local Variable and a Global Variable?
306(1)
What Are the Different Data Types Python Offers?
306(1)
What Is a GUI? What Python Library Is Best for GUI Development?
306(1)
How Do You Open a File in Python?
307(1)
How Would You List the Functions of a Module?
307(1)
Other Python Interview Questions
307(1)
Best Programming Practices
308(3)
Follow Style Guides
308(1)
If It's Broken, Fix It (Now, Not Later)
309(1)
Documentation Is Everything
309(1)
Use Code Repositories and Packages
310(1)
Test Often
310(1)
Choose a Side: Indentation or Spaces
311(1)
Classes Are Great, But Not Everything Needs to Be One
311(1)
The Future of Python
311(1)
Python Terms
312(5)
Index 317
James R. Payne was introduced to programming when he was just 10 years old. He started off hacking text-based games like Lemonade Stand to gain an advantage while playing and soon started creating his own text-based Role-Playing Games in the style of Dungeons and Dragons and inspired by his favorite comic books. The enjoyment of those early days stuck with him, and he continues to be drawn back into the programming world throughout his career. Payne is the former Editor-in-Chief/Community Manager of Developer Shed, an online publication and community consisting of 14 websites and forums dedicated to programming, web development, and Internet Marketing. He's written over a thousand articles on coding and marketing, covering virtually every language and platform available. His first book, Beginning Python (Wrox Press) was published in 2010. In addition, he has published over 2,000 articles covering topics ranging from gaming to aerospace/aeronautics, and also writes adult horror and young adult fantasy books.  Payne decided to write this book to pass on his love of development in the hopes that it would inspire future generations to code.