Tiny Python Projects
eBook - ePub

Tiny Python Projects

Learn coding and testing with puzzles and games

  1. 440 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Tiny Python Projects

Learn coding and testing with puzzles and games

About this book

”Tiny Python Projects is a gentle and amusing introduction to Python that will firm up key programming concepts while also making you giggle.”—Amanda Debler, Schaeffler 

Key Features
Learn new programming concepts through 21-bitesize programs
Build an insult generator, a Tic-Tac-Toe AI, a talk-like-a-pirate program, and more
Discover testing techniques that will make you a better programmer
Code-along with free accompanying videos on YouTube

Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.

About The Book
The 21 fun-but-powerful activities in Tiny Python Projects teach Python fundamentals through puzzles and games. You’ll be engaged and entertained with every exercise, as you learn about text manipulation, basic algorithms, and lists and dictionaries, and other foundational programming skills. Gain confidence and experience while you create each satisfying project.

Instead of going quickly through a wide range of concepts, this book concentrates on the most useful skills, like text manipulation, data structures, collections, and program logic with projects that include a password creator, a word rhymer, and a Shakespearean insult generator. Author Ken Youens-Clark also teaches you good programming practice, including writing tests for your code as you go. 

What You Will Learn
Write command-line Python programs
Manipulate Python data structures
Use and control randomness
Write and run tests for programs and functions
Download testing suites for each project

This Book Is Written For
For readers familiar with the basics of Python programming.

About The Author
Ken Youens-Clark is a Senior Scientific Programmer at the University of Arizona. He has an MS in Biosystems Engineering and has been programming for over 20 years.

Table of Contents

1 How to write and test a Python program
2 The crow’s nest: Working with strings
3 Going on a picnic: Working with lists
4 Jump the Five: Working with dictionaries
5 Howler: Working with files and STDOUT
6 Words count: Reading files and STDIN, iterating lists, formatting strings
7 Gashlycrumb: Looking items up in a dictionary
8 Apples and Bananas: Find and replace
9 Dial-a-Curse: Generating random insults from lists of words
10 Telephone: Randomly mutating strings
11 Bottles of Beer Song: Writing and testing functions
12 Ransom: Randomly capitalizing text
13 Twelve Days of Christmas: Algorithm design
14 Rhymer: Using regular expressions to create rhyming words
15 The Kentucky Friar: More regular expressions
16 The Scrambler: Randomly reordering the middles of words
17 Mad Libs: Using regular expressions
18 Gematria: Numeric encoding of text using ASCII values
19 Workout of the Day: Parsing CSV files, creating text table output
20 Password strength: Generating a secure and memorable password
21 Tic-Tac-Toe: Exploring state
22 Tic-Tac-Toe redux: An interactive version with type hints

 

 
 
 
 

Trusted byĀ 375,005 students

Access to over 1 million titles for a fair monthly price.

Study more efficiently using our study tools.

Information

Table of contents

  1. Tiny Python Projects
  2. Copyright
  3. brief contents
  4. contents
  5. front matter
  6. 0 Getting started: Introduction and installation guide
  7. 1 How to write and test a Python program
  8. 2 The crow’s nest: Working with strings
  9. 3 Going on a picnic: Working with lists
  10. 4 Jump the Five: Working with dictionaries
  11. 5 Howler: Working with files and STDOUT
  12. 6 Words count: Reading files and STDIN, iterating lists, formatting strings
  13. 7 Gashlycrumb: Looking items up in a dictionary
  14. 8 Apples and Bananas: Find and replace
  15. 9 Dial-a-Curse: Generating random insults from lists of words
  16. 10 Telephone: Randomly mutating strings
  17. 11 Bottles of Beer Song: Writing and testing functions
  18. 12 Ransom: Randomly capitalizing text
  19. 13 Twelve Days of Christmas: Algorithm design
  20. 14 Rhymer: Using regular expressions to create rhyming words
  21. 15 The Kentucky Friar: More regular expressions
  22. 16 The scrambler: Randomly reordering the middles of words
  23. 17 Mad Libs:Using regular expressions
  24. 18 Gematria: Numeric encoding of text using ASCII values
  25. 19 Workout of the Day: Parsing CSV files, creating text table output
  26. 20 Password strength: Generating a secure and memorable password
  27. 21 Tic-Tac-Toe: Exploring state
  28. 22 Tic-Tac-Toe redux: An interactive version with type hints
  29. Epilogue
  30. Appendix. Using argparse
  31. index

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Tiny Python Projects by Ken Youens-Clark in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in Python. We have over one million books available in our catalogue for you to explore.