An Outline to Mastery Python – Book Think Python

Learn Python

Recently I came across a wonderful book to learn python, Think Python by Allen B. Downey. Which has a great outline to follow on your way to mastery Python from zero. Also this outline is applicable for any programming language.

Introductory:

  • Installing Python or start on online environment like pythonanywhere.com
  • Run your first program
  • Arithmetic operators
  • Values and Types
  • Formula and natural language

Variables, expressions and statements

  • Assignment statements
  • Variable names
  • Expressions and statements
  • Script mode
  • Order of operations
  • String operations
  • Comments

Function

  • Function calls
  • Math functions
  • Composition
  • Adding new functions
  • Definitions and uses
  • Flow of execution
  • Parameters and arguments
  • Variables and parameters are local
  • Stack diagram
  • Fruitful functions and void functions
  • Why functions

Case Study: Interface Design

  • A turtle module
  • Simple repetition
  • Exercises
  • Encapsulation
  • Generalization
  • Interface design
  • Rafactoring
  • A development plan
  • Docstring

Conditionals and recursion

  • Floor division and modulus
  • Boolean expressions
  • Logical operators
  • Conditional execution
  • Alternative execution
  • Chained conditionals
  • Nested conditionals
  • Recursion
  • Stack diagrams for recursive functions
  • Infinite recursion
  • Keyboard input

Fruitful functions

  • Return values
  • Incremental development
  • Composition
  • Boolean functions
  • More recursion
  • Leap of faith
  • One more example
  • Checking types

Iteration

  • Reassignment
  • Updating variables
  • The while statement
  • break
  • Square roots
  • Algorithms

Strings

  • A string is a sequence
  • len
  • Traversal with a for loop
  • String slices
  • Strings are immutable
  • Searching
  • Looping and counting
  • String methods
  • The in operator
  • String comparison

Case study: word play

  • Reading word lists
  • Exercises
  • Search
  • Looping with indices

Lists

  • A list is a sequence
  • Lists are mutable
  • Traversing a list
  • List operations
  • List slices
  • List methods
  • filter and reduce
  • Deleting elements
  • Lists and strings
  • Objects and values
  • Aliasing
  • List arguments

Dictionaries

  • A dictionary is a mapping
  • Dictionary as a collection of counters
  • Looping and dictionaries
  • Reverse lookup
  • Dictionaries and lists
  • Memos
  • Global variables

Tuples

  • Tuples are immutable
  • Tuple assignment
  • Tuples as return values
  • Variable-length argument tuples
  • Lists and tuples
  • Dictionaries and tuples
  • Sequences of sequences

Case study: data structure selection

  • Word frequency analysis
  • Random numbers
  • Word histogram
  • Most common words
  • Optional parameters
  • Dictionary subtraction
  • Random words
  • Markov analysis
  • Data structures

Files

  • Persistence
  • Reading and writing
  • Format operator
  • Filenames and paths
  • Catching exceptions
  • Databases
  • Pickling
  • Pipes
  • Writing modules

Classes and objects

  • Programmer-defined types
  • Attributes
  • Rectangles
  • Instances as return values
  • Objects are mutable
  • Copying

Classes and functions

  • Time
  • Pure functions
  • Modifiers
  • Prototyping versus planning

Classes and methods

  • Object-oriented features
  • Printing objects
  • Another example
  • A more complicated example
  • The init method
  • The __str__ method
  • Operator overloading
  • Type-based dispatch
  • Polymorphism

Inheritance

  • Card objects
  • Class attributes
  • Comparing cards
  • Decks
  • Printing the deck
  • Add, remove, shuffle and sort
  • Inheritance
  • Class diagrams

Login or subscribe and download the book from the download page.

60 thoughts on “An Outline to Mastery Python – Book Think Python”

  1. Hmm is anyone else having problems with the pictures on this blog loading?
    I’m trying to figure out if its a problem on my end or if it’s the blog.
    Any suggestions would be greatly appreciated.

  2. I loved as much as you will receive carried out right here.

    The sketch is attractive, your authored subject matter
    stylish. nonetheless, you command get bought an impatience over that you wish be delivering the following.
    unwell unquestionably come more formerly again as exactly the same nearly a
    lot often inside case you shield this hike.

  3. Thanks , I have just been searching for information approximately this subject for a while and yours is the best
    I’ve found out till now. But, what in regards to the bottom line?
    Are you certain about the supply?

  4. Tremendous things here. I am very satisfied to look your post.

    Thank you so much and I am looking ahead to touch you.
    Will you kindly drop me a e-mail?

  5. Its such as you read my mind! You appear to grasp
    so much approximately this, such as you wrote the e-book in it or something.
    I think that you simply could do with some percent to drive the
    message house a bit, but instead of that, this is magnificent blog.

    A great read. I’ll definitely be back.

  6. of course like your web site but you need to test the
    spelling on quite a few of your posts. A number of them are rife with spelling
    problems and I in finding it very troublesome to inform the reality
    however I’ll surely come again again.

  7. І’m now not sure where you’re getting your info, but great topic.
    I needs to spend a while studying muc more or ᥙnderstanding more.
    Thɑnks for ցreat іnfo I ued to be lookng for this information for my missіon.

  8. Its like you read my mind! You appear to know so much
    about this, like you wrote the book in it or something. I think that you can do with some pics
    to drive the message home a little bit, but other than that, this is magnificent
    blog. A fantastic read. I will definitely be back.

  9. After going over a few of the articles on your website, I really like your way of
    writing a blog. I added it to my bookmark site list and will be checking
    back in the near future. Please check out
    my website too and let me know what you think.

  10. Greetings, I do think your website might be having browser
    compatibility problems. Whenever I look at your web site in Safari, it looks fine
    however, when opening in I.E., it has some overlapping issues.
    I simply wanted to provide you with a quick heads up!

    Besides that, fantastic site! games ps4 allenferguson games ps4

  11. Whats up are using WordPress for your blog platform? I’m new to the blog world but I’m
    trying to get started and set up my own. Do you
    require any html coding expertise to make your own blog?
    Any help would be really appreciated!

  12. Wonderful blog! I found it while surfing around on Yahoo News.
    Do you have any tips on how to get listed
    in Yahoo News? I’ve been trying for a while but I never seem to get there!

    Thanks asmr 0mniartist

  13. Great blog! Do you have any suggestions for aspiring writers?
    I’m hoping to start my own blog soon but I’m a little lost on everything.
    Would you propose starting with a free platform like WordPress or go for a paid option? There are so many choices out there that I’m totally confused ..
    Any recommendations? Appreciate it! asmr 0mniartist

  14. I’m gone to say to my little brother, that he should also pay a visit this webpage on regular basis to obtain updated from newest gossip.
    asmr 0mniartist

  15. Hello! I just wanted to ask if you ever have any trouble with hackers?
    My last blog (wordpress) was hacked and I ended up losing several weeks of hard
    work due to no back up. Do you have any solutions to
    prevent hackers?

  16. Your way of describing everything in this piece of writing is
    actually fastidious, every one be able to effortlessly know it, Thanks a
    lot.

  17. I all the time used to study paragraph in news papers but now
    as I am a user of web thus from now I am using net for articles, thanks to web.

  18. Yazımıza başlamadan evvel siz kıymetli okuyucularımıza Pubg Mobile hakkında bilgi vermek istedik. Playerunknown’s Battlegrounds, klasik PUBG Mobile bilgi birikimini mobil platforma resmi ve onaylanmış bir biçimde taşımış savaş ve hayatta kalma oyunudur. Tencent gaming buddy emülatörünü indirerek pubg mobile oynayabilirsiniz. Bunun ile birlikte yüzlerce oyuncunun hayatta kalmak için mücadele ettiği bu zorlu savaş meydanına paraşütle atlayacaksınız ve ultra realist savaş mekaniği kontrollerini deneyimlerken, oyunun heyecan verici savaş özelliklerini keşfedin. Bunun dışında araçların olduğu, bina ve haritadan oluşan bu gerçekçi oyunun ses efektlerinin tadını çıkarın. Böylelikle her zaman, her yerde arkadaşlarınızla sohbet etme imkanı bulmuş olursunuz. Bunun ile birlikte oyunda paraşütle atladıktan sonra sıcak bir çatışmaya girerek ya da oyunun sonuna kadar pusarak oyunun kurallarını kendiniz seçebilirsiniz. Gerçekçi bir oyun olan Pubg Mobile, farklı oyuncu stilleri geliştirmenize olanak sağlar. Bunun ile birlikte PUBG deneyimlerini yaşamakta olan oyuncular bu özelliğe bayılacaklar.

  19. scoliosis
    This is a really good tip particularly to those fresh to
    the blogosphere. Short but very accurate information… Thank you for sharing this
    one. A must read article! scoliosis

  20. Attractive section of content. I just stumbled upon your website and in accession capital to assert that I get in fact enjoyed account your blog posts.
    Any way I’ll be subscribing to your augment and even I achievement you access consistently quickly.

  21. Pingback: Google

  22. Pingback: Google

  23. Amazing blog! Do you have any helpful hints for aspiring writers?
    I’m hoping to start my own blog soon but I’m a little lost
    on everything. Would you propose starting with a free platform like WordPress
    or go for a paid option? There are so many options out there that I’m completely confused ..
    Any ideas? Thanks a lot!

Leave a Comment

Your email address will not be published.