Skip to content

Latest commit

 

History

History
141 lines (102 loc) · 4.32 KB

python.md

File metadata and controls

141 lines (102 loc) · 4.32 KB

Python

Learning Python (Courses)

Name Description
Introduction To Python Programming Free, Udemy
Python for Beginner Free, Udemy
Learn Python Free, freeCodeCamp
Learn Python from Scratch Free, educative.io

Learning Python (Tutorials and Interactive platforms)

Name Description
HackerRank Python challenges/exercises
LeetCode Python challenges/exercises
Exercism Python challenges/exercises
py4e Python lessons and materials
W3 Python Python tutorial
Mode Python Tutorial Python Tutorial
Khan Academy Python courses and lessons
Python resources for everybody Python written resources

Modules

Name Description
subprocess Spawn new processes (=execute commands).
agithub Rest API client for rapid prototyping on any rest API.

Books

Author Title Comments
Jeff Knupp Writing Idiomatic Python 3.3
Dane Hillard Publishing Python Packages
Yong Cui Python How-To
Pael Anni Let's Talk Python)

Articles, Tutorials & Blog Posts

Author Article Level Comments
Megha Mohan Mutable vs Immutable Objects in Python Beginner
Kenneth Reitz The Hitchhiker’s Guide to Python
Kenneth Reitz Serialization

Libraries, Frameworks & Tools

Name Description
Natural Language Toolkit Platform for language processing programming
Flask Web microframework based on Werkzeug, Jinja 2
Django Web framework with batteries included
Mypy Static type checker
Pandas "open source data analysis and manipulation tool"

Cheat Sheet

YAML

  • Read YAML
with open(r'/file/path') as file:

Files

  • Read remote file(s)
from fabric import Connection

with Connection(host) as conn:
    with conn.sftp().open(path) as stream:
    ...

Dictionaries

  • Define dictionary: some_dict = {'first_number': 2017, 'second_number': 2022}
  • Add item to dictionary: some_dict['third_number'] = 1991
  • Remove last item: some_dict.popitem()
  • Remove item by key: some_dict.pop("third_number")
  • Get all keys without values: some_dict.keys()
  • Get all values without keys: some_dict.values()
  • Access item: some_dict['first_number'] or some_dict.get('second_number')
  • Number of items in the dictionary: len(some_dict)
  • Update value of a certain key: `some_dict.update({"first_number": 02017})

Python Checklist


Checklist

  • Data Types

    • Numbers (int, long, float, complex)
    • List
    • Dictionary
    • String
    • Tuple
  • Mutability

    • What data types are mutable?
    • What data types are immutable?
  • PEP8

    • What is it?
    • Give an example of three coding conventions Python developers should always follow
  • Errors & Exceptions

    • How do you handle exceptions?
  • Iterators

    • What 'enumerate' is used for?
  • List Comprehensions

    • Is it better than for loop? If yes, why?
    • How to perform list comprehensions for nested lists?
  • Data serialization [ ] How you do with Python?

  • Type Annotations

  • Dataclass

  • What's that?

    • What _ is used for in Python?
  • Meta-programming

  • Descriptors

  • Decorators

[ ] Context Managers

  • Buffering Protocol