Skip to content
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.
Other