• Complain

Miki Tebeka - Python Brain Teasers: Exercise Your Mind

Here you can read online Miki Tebeka - Python Brain Teasers: Exercise Your Mind full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2021, publisher: Pragmatic Bookshelf, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Miki Tebeka Python Brain Teasers: Exercise Your Mind
  • Book:
    Python Brain Teasers: Exercise Your Mind
  • Author:
  • Publisher:
    Pragmatic Bookshelf
  • Genre:
  • Year:
    2021
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

Python Brain Teasers: Exercise Your Mind: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Python Brain Teasers: Exercise Your Mind" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

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 Ill 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]`)

Heres 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 dont. If you use this approach at work when fixing bugs, youll find you enjoy bug hunting more and become a better developer after each bug you fix.

Many of these puzzles are from the authors 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:

  • You need to know Python at some level and have experience programming with it.
  • NOTE: The book uses Python version 3.8.2 to run the code; the output _could_ change in future versions.
  • You will need a working Python environment, you can download it from python.org:https://www.python.org/downloads/.
  • You will probably want a good IDE for python, two of the most popular ones are Visual Studio Code:https://code.visualstudio.com/ and PyCharm:https://www.jetbrains.com/pycharm/.

Miki Tebeka: author's other books


Who wrote Python Brain Teasers: Exercise Your Mind? Find out the surname, the name of the author of the book and a list of all author's works by series.

Python Brain Teasers: Exercise Your Mind — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Python Brain Teasers: Exercise Your Mind" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Python Brain Teasers Exercise Your Mind by Miki Tebeka Version P10 September - photo 1
Python Brain Teasers
Exercise Your Mind
by Miki Tebeka
Version: P1.0 (September 2021)

Copyright 2021 The Pragmatic Programmers, LLC. This book is licensed to the individual who purchased it. We don't copy-protect it because that would limit your ability to use it for your own purposes. Please don't break this trustyou can use this across all of your devices but please do not share this copy with other members of your team, with friends, or via file sharing services. Thanks.

Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and The Pragmatic Programmers, LLC was aware of a trademark claim, the designations have been printed in initial capital letters or in all capitals. The Pragmatic Starter Kit, The Pragmatic Programmer, Pragmatic Programming, Pragmatic Bookshelf and the linking g device are trademarks of The Pragmatic Programmers, LLC.

Every precaution was taken in the preparation of this book. However, the publisher assumes no responsibility for errors or omissions, or for damages that may result from the use of information (including program listings) contained herein.

About the Pragmatic Bookshelf

The Pragmatic Bookshelf is an agile publishing company. Were here because we want to improve the lives of developers. We do this by creating timely, practical titles, written by programmers for programmers.

Our Pragmatic courses, workshops, and other products can help you and your team create better software and have more fun. For more information, as well as the latest Pragmatic titles, please visit us at http://pragprog.com.

Our ebooks do not contain any Digital Restrictions Management, and have always been DRM-free. We pioneered the beta book concept, where you can purchase and read a book while its still being written, and provide feedback to the author to help make a better book for everyone. Free resources for all purchasers include source code downloads (if applicable), errata and discussion forums, all available on the book's home page at pragprog.com. Were here to make your life easier.

New Book Announcements

Want to keep up on our latest titles and announcements, and occasional special offers? Just create an account on pragprog.com (an email address and a password is all it takes) and select the checkbox to receive newsletters. You can also follow us on twitter as @pragprog.

About Ebook Formats

If you buy directly from pragprog.com, you get ebooks in all available formats for one price. You can synch your ebooks amongst all your devices (including iPhone/iPad, Android, laptops, etc.) via Dropbox. You get free updates for the life of the edition. And, of course, you can always come back and re-download your books when needed. Ebooks bought from the Amazon Kindle store are subject to Amazon's polices. Limitations in Amazon's file format may cause ebooks to display differently on different devices. For more information, please see our FAQ at pragprog.com/#about-ebooks. To learn more about this book and access the free resources, go to https://pragprog.com/book/d-pybrain, the book's homepage.

Thanks for your continued support,

Andy Hunt
The Pragmatic Programmers

The team that produced this book includes: Dave Rankin (CEO) Janet Furlow (COO) Tammy Coron (Managing Editor) Margaret Eldridge (Development Editor) Jennifer Whipple (Copy Editor) Potomac Indexing, LLC (Indexing) Gilson Graphics (Layout) Andy Hunt and Dave Thomas (Founders)

For customer support, please contact .

For international rights, please contact .

To the Python community, Im proud to call myself a member.

Table of Contents
Copyright 2021, The Pragmatic Bookshelf.
Early Praise for Python Brain Teasers

Miki Tebekas brain teasers are a delightful and challenging collection ofpuzzles that will amuse novice Python developers and challenge experienceddevelopers to think carefully about their mental model of Python execution.

Beyond amusement, the kind of thinking Miki urges on readers is genuinelyimportant for all of us who have puzzled for far too long (and far too often) oversome small snippet of code, written in our real codebases, that just has to doone thing, but actually does another.

Dr. David Mertz
Partner and Senior Trainer, KDM Training

Miki is a world-class Python and Go expert and a hands-on professional. Thispublication is another evidence that he comes from the field and that he canarticulate not only the practical benefits and their practice but also thethought and the meta thinking behind them.

Shlomo Yona
Founder and Chief Scientist, mathematic.ai

I think even the seasoned Pythonista has a lot to learn from Python Brain Teasers by @tebeka.

David Bordeynik
Software Architect, NVIDIA

I strongly recommended this book to every Python programmer I know.

Mafinar Khan
Pythonista. Dartisan. Alchemist.

Acknowledgments

Im grateful for anyone who helped me write this book. Everycontribution, from finding bugs to fixing grammar to letting me work inpeace, was super helpful.

Here is a list of people who helped; my apologies to anyone Iforgot:

  • David Bordeynik for his comments and suggestions
  • Elad Eyal for his comments
  • Iddo Berger for his comments and suggestions
  • Raymond Hettinger for lifelong Python education
  • Shmuel Amar for his comments
  • Yaki Tebeka for his comments
  • Yehuda Lavy for his comments
Copyright 2021, The Pragmatic Bookshelf.

Preface

The Python programming language is a simple one, but like all otherlanguages it has its quirks. This book uses these quirks as a teachingopportunity. By understanding the gaps in your knowledge, youll becomebetter at what you do.

Theres a lot of research showing that people who make mistakes duringthe learning process learn better than people who dont. If you use thisapproach when fixing bugs, youll find you enjoy bug hunting more andbecome a better developer after each bug you fix.

These teasers will help you avoid mistakes. Some of the teasers are frommy own experience shipping bugs to production, and some are from othersdoing the same.

Teasers are fun! We geeks love to solve puzzles. You can also use theseteasers to impress your coworkers, have knowledge competitions, andbecome better together.

Many of these brain teasers are from quizzes I gave at conferences andmeetups. Ive found that people highly enjoy them and they tend toliven the room.

At the beginning of each chapter, Ill show you a short Python programand will ask you to guess the output. The following are the possible answers:

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

Python Version

Im using Python version 382 to run the code The output might change in - photo 2

Im using Python version 3.8.2 to run the code. The output might change in future versions.

Before moving on to the answer and the explanation, go ahead and guessthe output. After guessing the output, I encourage you to run the codeand see the output yourself; only then proceed to read the solution andthe explanation. Ive been teaching programming for many years andfound this course of action to be highly effective.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Python Brain Teasers: Exercise Your Mind»

Look at similar books to Python Brain Teasers: Exercise Your Mind. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Python Brain Teasers: Exercise Your Mind»

Discussion, reviews of the book Python Brain Teasers: Exercise Your Mind and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.