Atjaunināt sīkdatņu piekrišanu

Python Brain Teasers: Exercise Your Mind [Mīkstie vāki]

  • Formāts: Paperback / softback, 100 pages, height x width: 235x190 mm
  • Izdošanas datums: 11-Nov-2021
  • Izdevniecība: Pragmatic Bookshelf
  • ISBN-10: 1680509004
  • ISBN-13: 9781680509007
Citas grāmatas par šo tēmu:
  • Mīkstie vāki
  • Cena: 22,19 €
  • Grāmatu piegādes laiks ir 3-4 nedēļas, ja grāmata ir uz vietas izdevniecības noliktavā. Ja izdevējam nepieciešams publicēt jaunu tirāžu, grāmatas piegāde var aizkavēties.
  • Daudzums:
  • Ielikt grozā
  • Piegādes laiks - 4-6 nedēļas
  • Pievienot vēlmju sarakstam
  • Formāts: Paperback / softback, 100 pages, height x width: 235x190 mm
  • Izdošanas datums: 11-Nov-2021
  • Izdevniecība: Pragmatic Bookshelf
  • ISBN-10: 1680509004
  • ISBN-13: 9781680509007
Citas grāmatas par šo tēmu:

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!

At the beginning of each chapter I'll show you a short Python program and will ask you to guess the output. The possible answers can be:

  • Syntax error
  • Exception
  • Hang
  • Some output (e.g. `[ 1 2 3]`)

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.

What You Need:

Acknowledgments ix
Preface xi
Foreword xv
Raymond Hettinger
Part I Python Brain Teasers
Puzzle 1 Ready Player One
3(4)
Puzzle 2 A Slice of π
7(2)
Puzzle 3 When in Krakow
9(4)
Puzzle 4 A Task to Do
13(2)
Puzzle 5 Send It to the Printer
15(2)
Puzzle 6 Spam, Spam, Spam
17(2)
Puzzle 7 User! Identify Yourself
19(2)
Puzzle 8 Sorted? Reversed?
21(2)
Puzzle 9 A Simple Math
23(4)
Puzzle 10 Will It Fit?
27(2)
Puzzle 11 Click the Button
29(4)
Puzzle 12 Attention Seeker
33(4)
Puzzle 13 Identity Crisis
37(2)
Puzzle 14 The Great Divide
39(2)
Puzzle 15 Where's Waldo?
41(2)
Puzzle 16 Call Me Maybe
43(4)
Puzzle 17 Endgame
47(2)
Puzzle 18 Round and Round We Go
49(2)
Puzzle 19 TF (Without IDF)
51(2)
Puzzle 20 A Divided Time
53(4)
Puzzle 21 Tell Me the Future
57(2)
Puzzle 22 Loop de Loop
59(4)
Puzzle 23 Path to Nowhere
63(2)
Puzzle 24 12 Angry Men
65(4)
Puzzle 25 Look at the Pretty Colors
69(4)
Puzzle 26 Let's Vote
73(2)
Puzzle 27 An Inside Job
75(4)
Puzzle 28 Here Kitty Kitty
79(4)
Puzzle 29 Not My Type
83(4)
Puzzle 30 Highly Valued
87(4)
Index 91
Miki has a passion for teaching and mentoring. He teaches many workshops on various technical subjects all over the world and also mentored many young developers on their way to success. Miki is involved in open source, has several projects of his own, and contributed to several more - including the Python project. He has been using Python for more than 23 years.