Python workout PDF

Python workout PDF

Python.Engineering

The exercises are designed so that you can learn about the core concepts in Python: data types, functions, comprehensions and objects. They're meant to be simple, but they'll challenge you. You should feel comfortable working through the exercises without having read any documentation. In fact, you shouldn't need to read any documentation. You just need to know what the code does. And if you get stuck, we've provided solutions in the answers section.

Python workout 50 ten-minute exercises PDF

I can personally attest to the power of practice, not just as a Python instructor, but also as a student. For several years, I’ve been learning Chinese, in no small part because I travel to China every few months to teach Python courses there. Each lesson that I take, and every exercise that I do, doesn’t seem to advance my fluency very much. But when I return to China after an absence of several months, I find that the practice has indeed helped, and that I’m able to communicate more easily with the locals

Python Workout isn't designed to teach you Python; however, I hope and expect that readers will learn quite a bit along their journey through the pages of this book. The book is intended to help readers understand Python better and how to use it effectively to solve problems. Readers can think of it as an interactive textbook, one whose power and value depends entirely upon them. The more effort readers put into this book, they'll get more out of it.

In other words, the book is meant to be read, not simply paged through. You'll find answers to the questions and make mistakes along the way. But if you're willing to put in the effort, you'll get the benefits of a lifetime of learning.

By the time you're done with Python workout, you'll have learned about many important programming concepts, including data structures, functions, comprehension, modules, objects, iterators, and so much more. You'll also learn how to use them effectively, and you'll see how they can be used in many different idioms. After completing these exercises, you'll find it easier to design, write, and debug your own Python programs.

Python workout PDF

This book is aimed primarily at programmers who have taken a Python programming course, or who have just finished one. Indeed, the bulk (if not all) of these exercises assume familiarity with the basics of the language. In particular, you should know how to write simple functions, create classes, and work with basic data types.

But there’re differences between having a passing familiarity of these topics and being able to apply them to actual issues. If you’ve been using Python regularly for under 6 months, then this book will provide you with the skills you need to become more confident and self-reliant as you write Python code!

How this book is structured: A Roadmap

This book has 10 chapters, each focused on one topic. Each chapter contains multiple sections, each focusing on a specific technique. Within each section, we'll practice the technique through a series of exercises. For example, Chapter 1 focuses on functions, so throughout the chapter, we'll practice writing functions. We'll also cover topics such as variables, loops, conditionals, exceptions, and formatting.

Report Page