Daily knowledge pills to get better Python code.
Does your Python code suffers of any of this symptoms?
- Incorrect Indentation
- IndexError: list index out of range
- Circular module dependencies
- UnboundLocalError: local variable referenced before assignment
If yes, we have good news for you!
Take this daily knowledge pills to get better in Python.
You can take as many as you want, there are no known contraindications.
- Day 001 - What does
if __name__ == "__main__":
do? - Day 002 - The dir function
- Day 003 - Sorting lists
- Day 004 - Find element in a list
- Day 005 - The Python Command Line (REPL)
- Day 006 - Python Indentation
- Day 007 - Python Comments
- Day 008 - Variables in Python
- Day 009 - Python Data Types
- Day 010 - Python Operators (Part 1)
- Day 011 - Python Operators (Part 2)
- Day 012 - Python primitive data types in-depth: string, int, float and boolean
- Day 013 - Built-in Data Structures (Part 1): Lists
- Day 014 - Built-in Data Structures (Part 2): Dictionaries
- Day 015 - Pretty Print a Dictionary in Python
- Day 016 - Built-in Data Structures (Part 3): Tuples
- Day 017 - Built-in Data Structures (Part 4): Sets
- Day 018 - Merging two dictionaries with a single expression
- Day 019 - Swap two variables in Python
- Day 020 - Sort a Dictionary by Value
- Day 021 - Python slice notation 101
- Day 022 - Python slice notation examples
- Day 023 - Conditions and
if..elif..else
statements - Day 024 - Chain of multiple comparisons
- Day 025 - Short-circuit evaluation
- Day 026 - While loops
- Day 027 - For Loops
- Day 028 - The
range()
function - Day 029 - Iterate over two lists or more
- Day 030 - Nested For Loops
- Day 031 - Intro to Python Functions
- Day 032 - Function Parameters or Arguments?
- Day 033 - Sum an arbitrary number of arguments
- Day 034 - Unpacking Argument Lists
- Day 035 - Anonymous functions
- Day 036 - Emulate switch/case statements with dicts and lambdas
- Day 037 - Shrink your code with lambdas
- Day 038 - 5 ways to reverse a string in Python
- Day 039 - Python's built-in HTTP server
- Day 040 - Comparing Python Objects the Right Way:
is
vs==
- Day 041 - The Walrus Operator
- Day 042 - List Comprehensions
- Day 043 - List comprehension tricks you might not know
- Day 044 - Classes and Objects in Python
- Day 045 - Inheritance
- Day 046 - Functions as First Class Objects
- Day 047 - Create an Iterator
- Day 048 - Use of Enums
- Day 049 - Count Objects with Counter
If you are interested in contributing for this project, please check for the instructions here.