Leanpub Header

Skip to main content

Object Oriented Programming with Python

Learn essentials of OOP with Python 3

This book is the simple and definitive guide to the Python 3 Object Oriented Programming. Other book of the similar genres make use of complicated writing style and examples to introduce the readers to the OOP in Python 3. However, this book uses Simple language to explain concepts. It is aimed at intermediate learners who already know Python.

Free With Membership

With Membership

Free!

$10.99

You pay

$10.99

Authors earn

$8.79
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
EPUB
WEB
3,171
Readers
77
Pages
8,239Words
About

About

About the Book

Have gotten started with Python 3 and finding Object Oriented Programming difficult? Do not worry. We are here to assist you on the quest of understanding the very Philosophy of Object Oriented Programming with Python 3. We present our decades of cumulative experience together in the form of this awesome book so the readers can enjoy the exploration of the Amazing World of Python 3 Object Oriented Programming. The book covers the following topics,

  • Classes and Objects
  • Philosophy Behind Object Oriented Programming
  • modules and packages
  • Inheritance
  • Static Methods, Abstract Classes, Final Classes
  • Polymorphism
  • Exception
  • Built-in Data Structures
  • Python Strings
  • Iterators and Generators

The book will constantly be updated and we will add the new material based on the readers' precious feedback.

Share this book

Categories

Author

About the Authors

Ashwin Pajankar

Ashwin Pajankar is a Polymath. He is a Science Popularizer, a Programmer, a Maker, an Author, and a Youtuber.

His website is http://www.AshwinPajankar.com

Subscribe to his Youtube Channel http://www.YouTube.com/AshwinPajankar for videos and Tutorials related to Science, Technology, Engineering, and Mathematics (STEM).

He can be contacted through LinkedIn https://in.linkedin.com/in/ashwinpajankar

He is author of multiple books. He has written 3 books with Packt Publication, 6 books with Leanpub, and 3 books with Apress. He has also reviewed four books for Packt Publications. He is working on few more books.

Author Profile on Packt https://www.packtpub.com/books/info/authors/ashwin-pajankar

Author Profile on Amazon.com https://www.amazon.com/author/ashwinpajankar

He graduated from IIIT Hyderabad with MTech in Computer Science and Engineering. He has keen interest in the promotion of Science, Technology, Engineering, and Mathematics (STEM) education.

Sushant Garg

Sushant Garg is a Computer Science and Engineering undergraduate at SRM University, Chennai.

He has particular interests in autonomous systems, computer vision and other scientific computing applications.He is currently working on an Autonomous Underwater Vehicle prototype with a team of 19 members for SAVe at National Institute of Ocean Technology, Chennai followed by SAUVC, Singapore and Robosub competition held at San Diego, CA. He has been involved in building such systems with different capabilities, such as navigation, localization, path planning and simulation.He has worked on various other projects such as Home automation system and Autonomous Drilling Machine using Image Processing. Arduino and Raspberry pi are his favorite pieces of hardware.

He also likes developing dynamic websites.

Contents

Table of Contents

Acknowledgments

Preface

  1. Why am I writing this book?
  2. Who this book is for?
  3. How is this book organized?
  4. What this book is not?
  5. About the Author
  6. Ashwin Pajankar
  7. Sushant Garg
  8. Errata and Suggestions
  9. How to Help the Author

1.Introduction

  1. 1.1Objects and Classes
  2. 1.2Everything is an Object in Python
  3. 1.3Conclusion

2.Getting Started with Classes

  1. 2.1Docstrings
  2. 2.2Adding attributes to class
  3. 2.3Adding a method to the class
  4. 2.4Initializer method
  5. 2.5Multiline Docstrings in Python
  6. 2.6Conclusion

3.Modules and Packages

  1. 3.1Modules
  2. 3.2Packages
  3. 3.3Conclusion

4.Inheritance

  1. 4.1Basic Inheritance in Python
  2. 4.2Method Overriding
  3. 4.3super()
  4. 4.4Conclusion

5.More Inheritance

  1. 5.1Multiple Inheritance
  2. 5.2Method Resolution order
  3. 5.3The Diamond Problem
  4. 5.4Abstract class and method
  5. 5.5Access Modifiers in Python
  6. 5.6Conclusion

6.Polymorphism

  1. 6.1Method Overloading
  2. 6.2Operator overloading
  3. 6.3Conclusion

7.Exceptions

  1. 7.1Syntax Errors
  2. 7.2Exceptions
  3. 7.3Handling exceptions
  4. 7.3.1Handling exceptions by types
  5. 7.4else block
  6. 7.5Raising an exception
  7. 7.6finally clause
  8. 7.7User Defined Exceptions
  9. 7.8Conclusion
  10. 7.9Summary

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub