Python's strings have dozens of methods, but some are much more useful than others. Let's discuss the dozen-ish must-know string methods and why the other methods aren't so essential.
Python's built-in functions list includes 71 functions now! Which built-in functions are worth knowing about? And which functions should you learn later?
Python's string formatting syntax is both powerful and complex. Let's break it down and then look at some cheat sheets.
The datetime.strptime class method can parse a date/time string into a datetime object.
Python's pathlib module is the tool to use for working with file paths. See pathlib quick reference tables and examples.
The time complexity of common operations on Python's many data structures.
Every command-line tool included with Python. These can be run with python -m module_name.
Need to troubleshoot an error in your Python code? Use Python's built-in breakpoint function to launch the Python debugger.
Python's reduce function can "reduce" an iterable to a single value. But the reduce function is often more hassle than it's worth.
An explanation of all of Python's 100+ dunder methods and 50+ dunder attributes, including a summary of each one.
What are Python's file modes, what are the differences between them, and which ones are actually worth using?
There are many ways to set default values for dictionary key lookups in Python. Which way you should use will depend on your use case.
What operators are overloadable in Python? And how does operator overloading work with each of the different types of operators?
Continue exploring
Learn something new about Python every week
My name is Trey Hunner. I publish new Python articles and screencasts every week through Python Morsels. If you want to learn something new about Python every week, join Python Morsels!