ŷ

Jump to ratings and reviews
Rate this book

Tiny Python Projects: Learn coding and testing with puzzles and games

Rate 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






856 pages, Kindle Edition

Published July 21, 2020

17 people are currently reading
56 people want to read

About the author

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
7 (38%)
4 stars
4 (22%)
3 stars
3 (16%)
2 stars
3 (16%)
1 star
1 (5%)
Displaying 1 - 5 of 5 reviews
Profile Image for Fotis Koutoulakis.
117 reviews13 followers
January 24, 2023
This is a quite decent book, mostly for beginners in Python, which uses a project based approach to teach the main parts of the language.

It focuses on the last few chapters quite a bit on regular expression based projects, which I think was quite good.

Even as a fairly experienced programmer, I quite liked the approach in this one.
Profile Image for Ben.
2,721 reviews218 followers
Read
April 25, 2023
Great Book, Unrelated Book Cover

Tiny Python Projects is a unique book that combines learning coding with puzzles and games.

While it may not be as focused on projects as some other Python books, it offers a refreshing approach to learning the language.

The puzzles and games presented are engaging and make the learning process more fun. Plus, the author Ken Youens-Clark is an experienced instructor who knows how to explain complex coding concepts in a way that's easy to understand.

This book is perfect for beginners who are just starting out with Python, but even intermediate-level programmers can benefit from the creative exercises and games that this book offers.

Overall, Tiny Python Projects is an excellent resource for anyone who wants to improve their Python skills while having fun at the same time.

So, don't let the simplicity of the book fool you - it's definitely worth checking out!

4.3/5
Profile Image for Tung Nguyen.
4 reviews
December 2, 2021
4.5 star!

You will become familiar with command line programs after completing this book.
Profile Image for bimri.
Author2 books8 followers
December 24, 2021
True test driven development introduction manual for Python. Though I came in thinking it'll be an intermediate text: so the emphasis on teaching basics of Python: in order to complete the tiny projects made this book a bit tedious to read. To someone who's trying to reduce redundancy with their coursework -- be aware of that fact going into the read.

Also, to a novice, this shouldn't be your primary text to learn Python's core fundamentals. It's a brief intro that won't build your intuitions on the language!
Displaying 1 - 5 of 5 reviews

Can't find what you're looking for?

Get help and learn more about the design.