Python for kids : a playful introduction to programming /


by Jason Briggs.
Bok Engelsk 2013 Jason. Briggs,· Electronic books.
Utgitt
San Francisco, CA : Farnham : : No Starch ; : O'Reilly [distributor], , 2013.
Omfang
1 online resource (348 p.)
Utgave
1st edition
Opplysninger
Includes index.. - About the Author, Illustrator, and Technical Reviewers; Acknowledgments; Introduction; Why Python?; How to Learn to Code; Who Should Read This Book; What's in This Book; The Companion Website; Have Fun!; Part I: Learning to Program; 1: Not All Snakes Slither; A Few Words About Language; Installing Python; Installing Python on Windows 7; Installing Python on Mac OS X; Installing Python on Ubuntu; Once You've Installed Python; Saving Your Python Programs; What You Learned; 2: Calculations and Variables; Calculating with Python; Python Operators; The Order of Operations. - #1: A Rectangle#2: A Triangle; #3: A Box Without Corners; 5: Asking Questions with if and else; if Statements; A Block Is a Group of Programming Statements; Conditions Help Us Compare Things; if-then-else Statements; if and elif Statements; Combining Conditions; Variables with No Value-None; The Difference Between Strings and Numbers; What You Learned; Programming Puzzles; #1: Are You Rich?; #2: Twinkies!; #3: Just the Right Number; #4: I Can Fight Those Ninjas; 6: Going Loopy; Using for Loops; While We're Talking About Looping . . .; What You Learned; Programming Puzzles; #1: The Hello Loop. - #2: Even Numbers#3: My Five Favorite Ingredients; #4: Your Weight on the Moon; 7: Recycling Your Code with Functions and Modules; Using Functions; Parts of a Function; Variables and Scope; Using Modules; What You Learned; Programming Puzzles; #1: Basic Moon Weight Function; #2: Moon Weight Function and Years; #3: Moon Weight Program; 8: How to Use Classes and Objects; Breaking Things into Classes; Children and Parents; Adding Objects to Classes; Defining Functions of Classes; Adding Class Characteristics as Functions; Why Use Classes and Objects?; Objects and Classes in Pictures. - Other Useful Features of Objects and ClassesInherited Functions; Functions Calling Other Functions; Initializing an Object; What You Learned; Programming Puzzles; #1: The Giraffe Shuffle; #2: Turtle Pitchfork; 9: Python's Built-in Functions; Using Built-in Functions; The abs Function; The bool Function; The dir Function; The eval Function; The exec Function; The float Function; The int Function; The len Function; The max and min Functions; The range Function; The sum Function; Working with Files; Creating a Test File; Opening a File in Python; Writing to Files; What You Learned. - Programming Puzzles. - Variables Are Like LabelsUsing Variables; What You Learned; 3: Strings, Lists, Tuples, and Maps; Strings; Creating Strings; Handling Problems with Strings; Embedding Values in Strings; Multiplying Strings; Lists Are More PowerfulThan Strings; Adding Items to a List; Removing Items from a List; List Arithmetic; Tuples; Python Maps Won't Help You Find Your Way; What You Learned; Programming Puzzles; #1: Favorites; #2: Counting Combatants; #3: Greetings!; 4: Drawing with Turtles; Using Python's turtle Module; Creating a Canvas; Moving the Turtle; What You Learned; Programming Puzzles. - Python for Kids is a lighthearted introduction to the Python language and programming in general, complete with illustrations and kid-friendly examples. Jason Briggs, author of the popular online tutorial "Snake Wrangling for Kids," begins with the basics of how to install Python and write simple commands. In bite-sized chapters, he instructs readers on the essentials of Python, including how to use Python's extensive standard library, the difference between strings and lists, and using for-loops and while-loops. By the end of the book, readers have built a game and created drawings with Pytho
Emner
Sjanger
Dewey
ISBN
1-59327-494-7
Hylleplass
QA76.73.P98 B75 2012

Bibliotek som har denne