- Browse
- » Python for teenagers: learn to program like a superhero!
Python for teenagers: learn to program like a superhero!
Author
Publisher
Apress
Publication Date
Varies, see individual formats and editions
Language
English
Description
Loading Description...
Table of Contents
From the Book
Introduction to computer programming and Python
It all adds up
String things along
Making decisions
Loops and logic
Using what we've learned
Saving time with functions, modules, and built-ins
Using classes and objects
Introducing other data structures
Python files
Python for gaming
Animating games
Error handling
Python career.
From the Book
Introduction to computer programming and Python
It all adds up
String things along
Making decisions
Loops and logic
Using what we've learned
Saving time with functions, modules, and built-ins
Using classes and objects
Introducing other data structures
Python files
Python for gaming
Animating games
Error handling
Python career.
From the eBook - Second edition.
Chapter 1, Introduction to Computer Programming and Python
Chapter 2, It All Adds Up
Chapter 3, String Things Along
Chapter 4, Making Decisions
Chapter 5: Loops and Logic
Chapter 6: Using What We've Learned
Chapter 7: Saving Time with Functions, Modules, and Built-ins
Chapter 8: Using Classes and Objects
Chapter 9: Introducing Other Data Structures
Chapter 10: Python Files
Chapter 11: Python for Gaming
Chapter 12: Animating Games
Chapter 13: Gaming Frameworks
Chapter 14: Error Handing
Chapter 15: Python Careers.
From the eBook
Intro; Table of Contents; About the Author; About the Technical Reviewer; Acknowledgments; Introduction; Chapter 1: Introduction to Computer Programming and Python; Programming Language Overview; Python Overview; How Does Python Differ from Other Programming Languages?; The Benefits of Python; Examples of Python in the Wild; Your First Python Program; Installing Python; Installing Python on Windows; Installing Python on Other Operating Systems; In This Episode!; Chapter 2: It All Adds Up; Operator Precedence; Data Types: Know Your Enemy; Converting Number Data Types; What Are Variables?
Super Hero Generator 3000In This Episode!; Chapter 3: String Things Along; Leave Your Comments at the Door; Block Commenting; Inline Commenting; Other Uses for Commenting; Texting
Without Your Phone; Working with Strings and Variables; Longer Strings; Strings on Multiple Lines; Formatting Strings; Introducing a New Weapon to Your Arsenal: Lists; Changing Lists; Other List Methods; In This Episode!; Chapter 4: Making Decisions; Making Decisions; Conditional Statements; Behold
The If Statement!; Boolean Logic and Comparison Operators; Else Statements; Else If Statements; Logical Operators
Nesting
Not Just for the BirdsIn This Episode!; Chapter 5: Loops and Logic; What Are Loops?; Limiting Loops; For Loops; More Fun with For Loops; Break, Continue, and Pass Statements; In This Episode!; Chapter 6: Using What We've Learned; Creating Your First Real Program; Importing Modules; Creating Our Variables; Defining Our Lists; Introductory Text and Accepting Input from the User; Creating Suspense!; Randomizing Super Hero Names; A Quick Check-in; Randomizing the Super Powers; Finishing Our Program; The superHeroGenerator3000 Code
Completed!
Chapter 7: Saving Time with Functions, Modules, and Built-insDefining Modules; Built-ins; Packages; Creating Your Own Module; Common Built-in Functions; String Functions; Number Functions; Practice Your New Functions; String Function Examples; Number Function Examples; In This Episode!; Chapter 8: Using Classes and Objects; What Is OOP?; What Are Classes (And Will I Be Graded?); What Are Objects; Creating Our First Class; Creating Our First Object; Improving the Super Hero Generator 3000!; Inheritance, Subclasses, and More!; Adding the Bells and Whistles
The New and Improved Super Hero Generator 3000 Code!In This Episode!; Chapter 9: Introducing Other Data Structures; More Data Structures; What Are Tuples?; The Tuple Functions; More Fun with Tuples; Tuple Examples; Working with Dictionaries; Dictionary Methods; More Fun with Dictionaries; Other Dictionary Methods; Example Dictionary Code; In This Episode!; Chapter 10: Python Files; Working with Files in Python; File Types; Creating a Text File in Python Code; Reading Files in Python; Using readline() and readlines(); A Warning About Reading and Writing to Files; Appending to Files
Excerpt
Loading Excerpt...
Author Notes
Loading Author Notes...
Staff View
Loading Staff View.

