Skip to content

Instantly share code, notes, and snippets.

@SureshKL
Last active December 7, 2018 02:23
Show Gist options
  • Save SureshKL/b39dc11cfed3ffab54ee9fb9c235813f to your computer and use it in GitHub Desktop.
Save SureshKL/b39dc11cfed3ffab54ee9fb9c235813f to your computer and use it in GitHub Desktop.
Python Topics Quick Reference

Python Important Topics

Fundamentals

  • list
  • tuple
  • dict
  • set
  • frozen set
  • Builtin functions: map, filter, reduce, vars, zip, enumerate
  • lambda

Data Structures

Data Structure Methods Description Example
Tuple
index()
count()
List
append()
clear()
copy()
count()
extend()
index()
insert()
pop()
remove()
reverse()
sort()

Intermediate

  • Pickle concept
  • JSON
  • XML
  • CSV
  • config file
  • static method, instance method, class method
  • Class variables and Instance variables, slots
  • Name mangling - single underscore, double underscore, dunder
  • Monkey patching
  • Performance of small code using timeit module
  • Comprehension: List, Dict, Set & Generator expression
  • Exception handling
  • File handling
  • collections module
  • itertools module
  • *args, **kwargs
  • Positional with keyword only argument : def function(arg, *, **kwargs)
  • Slicing technique

Advanced Concepts

  • functions: call by value/reference
  • closures
  • decorators: types; function & class decorator
  • generators: difference b/w iterator and generators; it's unique characteristics
  • property
  • iterators
  • Metaclass
  • Threads
  • Processes
  • concurrent.futures
  • Regex
  • How python is detecting the object types dynamically
  • How python is managing the memory

Git basics

  • Work flow: Working tree, staging area, repository, stash
  • git init
  • git branch
  • git checkout
  • git add
  • git reset
  • git revert
  • git merge
  • git rebase
  • git log

Design Patterns

  • Singleton
  • Factory method
  • Abstract Factory method
  • Builder
  • Prototype
  • Facade

Python language supported design patterns

  • Iterator
  • Decorator
  • Generator

Standard library modules

  • os
  • sys
  • re
  • csv
  • argparse
  • xml.etree
  • json
  • subprocess
  • unittest
  • logging
  • collections
  • itertools
  • threading
  • concurrent.futures
  • urllib

Third party modules

  • requests
  • Flask
  • Bottle
  • PyYAML
  • virtualenv
  • jupyter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment