Python Brain Teasers

Exercise Your Mind



Bookstore > Books > Python Brain Teasers

Price$18.95 - $21.54
Rating
AuthorMiki Tebeka
PublisherThe Pragmatic Programmers
Published2021
Pages116
LanguageEnglish
FormatPaper book / ebook (PDF)
ISBN-101680509004
ISBN-139781680509007
EBook Hardcover Paperback

We geeks love puzzles and solving them. The Python programming language is a simple one, but like all other languages it has quirks. This book uses those quirks as teaching opportunities via 30 simple Python programs that challenge your understanding of Python. The teasers will help you avoid mistakes, see gaps in your knowledge, and become better at what you do. Use these teasers to impress your co-workers or just to pass the time in those boring meetings. Teasers are fun!

Here's how to approach the puzzles. Read through the code. Before moving on to the answer and the explanation, go ahead and guess the output. After guessing the output, run the code and see the output yourself. Finally proceed to read the solution and the explanation. The puzzles are short enough to solve on a coffee break, so carry them with you, have fun, and share them with co-workers.

People who make mistakes during the learning process learn better than people who don't. If you use this approach at work when fixing bugs, you'll find you enjoy bug hunting more and become a better developer after each bug you fix.

Many of these puzzles are from the author's lessons learned (and others) of shipping bugs to production. He often uses the puzzles as quizzes during conferences and meetups, and they tend to create a buzz of excitement.


  1. (3 books)


4 5 6

Similar Books


Go Brain Teasers

Go Brain Teasers

by Miki Tebeka

This book contains 25 short programs that will challenge your understanding of Go. Like any big project, the Go developers had to make some design decisions that at times seem surprising. This book uses those quirks as a teaching opportunity. By understanding the gaps in your knowledge, you'll become better at what you do. Some of th...

Price:  $13.76  |  Publisher:  The Pragmatic Programmers  |  Release:  2021

Pandas Brain Teasers

Pandas Brain Teasers

by Miki Tebeka

This book contains 25 short programs that will challenge your understanding of Pandas. Like any big project, the Pandas developers had to make some design decisions that at times seem surprising. This book uses those quirks as a teaching opportunity. By understanding the gaps in your knowledge, you'll become better at what you do. So...

Price:  $8.28  |  Publisher:  The Pragmatic Programmers  |  Release:  2021

Rust Brain Teasers

Rust Brain Teasers

by Herbert Wolverson

The Rust programming language is consistent and does its best to avoid surprising the programmer. Like all languages, though, Rust still has its quirks. But these quirks present a teaching opportunity. In this book, you'll work through a series of brain teasers that will challenge your understanding of Rust. By understanding the gaps...

Price:  $18.95  |  Publisher:  The Pragmatic Programmers  |  Release:  2022

Learn More Python 3 the Hard Way

Learn More Python 3 the Hard Way

by Zed A. Shaw

Zed Shaw has perfected the world's best system for becoming a truly effective Python 3.x developer. Follow it and you will succeed - just like the tens of millions of programmers he's already taught. You bring the discipline, commitment, and persistence; the author supplies everything else.In Learn Python 3 the Hard Way, Zed Sha...

Price:  $22.33  |  Publisher:  Addison-Wesley  |  Release:  2017

Beginning Python

Beginning Python

by James Payne

As an open source, object-oriented programming language, Python is easy to understand, extendable, and user-friendly. This book covers every aspect of Python so that you can get started writing your own programs with Python today. Author James Payne begins with the most basic concepts of the Python language - placing a special focus on th...

Price:  $7.99  |  Publisher:  Wrox  |  Release:  2010

C and Python Applications

C and Python Applications

by Philip Joyce

Solve problems by embedding Python code in a C programs, SQL methods, Python sockets. This book uses rudimentary mathematics and basic programming to create practical Python applications for embedding. You'll start with an introduction to C and Python, assuming a fundamental understanding of what programming is. You will also review ...

Price:  $33.74  |  Publisher:  Apress  |  Release:  2021

DevOps in Python, 2nd Edition

DevOps in Python, 2nd Edition

by Moshe Zadka

Take advantage of Python to automate complex systems with readable code. This new edition will help you move from operations/system administration into easy-to-learn coding.You'll start by writing command-line scripts and automating simple DevOps-style tasks followed by creating reliable and fast unit tests designed to avoid incident...

Price:  $26.25  |  Publisher:  Apress  |  Release:  2022

Coffee Break Python Slicing

Coffee Break Python Slicing

by Christian Mayer

Puzzle-based learning is an active learning technique. With code puzzles, you will learn faster, smarter, and better.Coffee Break Python Slicing is all about growing your Python expertise - one coffee at a time. The focus lies on the important slicing technique to access consecutive data ranges. Understanding slicing thoroughly is crucial...

Free ebook  |  Publisher:  Self-publishing  |  Release:  2018