Skip to content - Chad Hansen. Python Keywords: An Introduction. realpython, 6/2020.*
- David Amos. Numbers in Python. realpython, 9/2020.
- Wolf. Null in Python: Understanding Python’s NoneType Object. realpython, 2/2020.
- Leodanis Pozo Ramos. Python’s reduce(): From Functional to Pythonic Style. realpython, 6/2020.*
- Leodanis Pozo Ramos. Python eval(): Evaluate Expressions Dynamically. realpython, 5/2020.*
- Alex Ronquillo. How to Use any() in Python. realpython, 3/2020.*
- Bryan Weber. Python enumerate(): Simplifying Looping with Counters. realpython, 11/2020.*
- Moshe Zadka. Python Booleans: Optimize Your Code With Truth Values. realpython, 10/2020.
- John Sturtz. Namespaces and Scope in Python. realpython, 7/2020.
- Dan Bader. Python’s Instance, Class, and Static Methods Demystified. realpython.
- John Sturtz. Basic Input, output, and String Formatting in Python. realpython.
- Kyle Stratis. How to Use Generators and yield in Python. realpython.*
- James Timmins. When to Use a List Comprehension in Python. realpython.
- Davide Mastromatteo. Python args and kwargs: Demystified. realpython.
- Mike Driscoll. Python sleep(): How to Add Time Delays to Your Code. realpython.
- Jaya Zhane. Writing Comments in Python (Guide). realpython.
- Bartosz Zaczynski. Your Guide to the Python print() Function. realpython.
- Geir Arne Hjelle. Python import: Advanced Techniques and Tips. realpython, 7/2020.
- John Sturtz. Python Program Lexical Structure. realpython.
Variables
- John Sturtz. Variables in Python. Real Python.
- Covers variable assignment, types, object references and identity, variable naming, and reserved words.
Strings
- Kyle Stratis. Splitting, Concatenating, and Joining Strings in Python. Real Python.
- Includes separators, maxsplit, and .join() in addition to above.
- Dan Bader. Python String Formatting Best Practices. Real Python.
- Covers four different methods of formatting strings including: % Operator, str.format, string interpolation / f-Strings, and template strings.
- Also provides direction on when to use each method.
- John Sturtz. A Guide to the Newer Python String Formatting Techniques. Real Python, 2/2020.
- John Sturtz. Strings and Character Data in Python. Real Python.
- Covers string manipulation (operations, built-in functions, indexing, slicing, interpolating variables, modifying strings, and built-in methods) as well as bytes Objects (defining, operations on, and bytearray Objects).
Files
- James Mertz. Reading and Writing Files in Python (Guide). Real Python.
- Covers paths, line endings, character encodings, opening and closing, text/binary/raw file types, iterating over lines, working with bytes, __file__, etc.
- Vuyisile Ndlovu. Working with Files in Python. Real Python.
- Covers “with open(…) as …”, directory listings, file attributes, creating directories, filename pattern matching, directory traversal, temporary files/dirs, deleting/copying/moving/renaming, archiving, etc.
- Jon Fincher. Reading and Writing CSV Files in Python. Real Python.
- Yong Cui. A Cheat Sheet on Reading and Writing Files in Python. betterprogramming, 1/2020.
- Shantnu Tiwari. Using Pandas to Read Large Excel Files in Python. Real Python.
Conditionals / Branching / Iteration
Operators
Operators and Expressions
Python Basic Data Structures
- Python 101: Learning About Lists. Python Library, 3/2020.*
- Dan Bader. Common Python Data Structures. Real Python, 8/2020.*
- Covers dictionaries, maps, hash tables, arrays (list, tuple, array.array, str, bytes, bytearray), records, structs, and data transfer objects, sets, multisets, stacks (LIFOs), queues (FIFOs), and priority queues.
- Pedro Pregueiro. Linked Lists in Python: An Introduction. Real Python, 4/2020.
- John Sturtz. Dictionaries in Python. Real Python.
- John Sturtz. Sets in Python. Real Python.
- John Sturtz. Basic Data Types in Python. Real Python.*
- Covers integers, floating-point numbers, complex numbers, strings (escape sequences, raw, and triple-quoted), boolean type/context/”truthiness”, and built-in functions for math, type conversion, iterables and iterators, composite data type, classes, attributes, inheritance, input/output, variables, references, and scope.
Functions
Map
Loops
OOP
Strings
Lambda Functions
Releases
Other