https://www.pythonmorsels.com/
Python Morsels: Write better Python code
Adopt a more Pythonic coding style in 60 minutes of practice each week. Python Morsels includes exercises and screencasts by a professional Python trainer.
python morselswrite bettercode
https://mastodon.social/@PythonMorsels
Python Morsels ๐๐ช (@PythonMorsels@mastodon.social) - Mastodon
468 Posts, 3 Following, 645 Followers ยท Giving life-long learners a low-stress way to hone their #Python skills. ๐๐ช Made by @treyhunner ๐ Write beautiful code....
python morselsmastodonsocial
https://www.pythonmorsels.com/built-in-functions-in-python/
Built-in Functions in Python - Python Morsels
Apr 19, 2026 - 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?
built infunctionspythonmorsels
https://www.pythonmorsels.com/every-dunder-method/
Every dunder method in Python - Python Morsels
Apr 19, 2026 - An explanation of all of Python's 100+ dunder methods and 50+ dunder attributes, including a summary of each one.
every dunder method in pythonmorsels
https://www.pythonmorsels.com/articles/
Python Articles - Python Morsels
Short Python articles and screencasts.
pythonarticlesmorsels
https://www.pythonmorsels.com/privacy/
Privacy Policy - Python Morsels
privacy policypythonmorsels
https://www.pythonmorsels.com/how-attribute-lookups-and-assignments-work/
How attribute lookups and assignments work - Python Morsels
Apr 19, 2026 - Where does Python store attributes on class instances? And what happens when you assign an attribute on a class instance when that attribute already exists on...
attributelookupsassignmentsworkpython
https://www.pythonmorsels.com/next/
Python's next() function - Python Morsels
Apr 19, 2026 - Python's built-in next function will consume the next item from a given iterator.
pythonnextfunctionmorsels
https://www.pythonmorsels.com/exercises/1cf39cc8defc48dc961d1eabcfb2df4a/
PhoneNumber exercise - Python Morsels
Python Morsels PhoneNumber exercise: Class representing a US phone number
phonenumberexercisepythonmorsels
https://www.pythonmorsels.com/variables-are-pointers/?watch
Variables are pointers in Python - Python Morsels
Apr 19, 2026 - Python's variables are not buckets that contain objects; they're pointers. Assignment statements don't copy: they point a variable to a value (and multiple...
variablespointerspythonmorsels
https://www.pythonmorsels.com/trailing-commas-in-python/
The benefits of trailing commas - Python Morsels
Apr 19, 2026 - Trailing commas make for easier code changes, shorter diffs, and fewer bugs.
the benefitstrailing commaspythonmorsels
https://www.pythonmorsels.com/augmented-assignments-mutate/
Augmented assignments mutate - Python Morsels
Apr 19, 2026 - When possible, augmented assignments (in-place addition for example) operate
augmentedassignmentsmutatepythonmorsels
https://www.pythonmorsels.com/accepting-any-number-arguments-function/
Accepting any number of arguments to a function - Python Morsels
Apr 19, 2026 - To make a function that accepts any number of arguments, you can use the * operator and then some variable name when defining your function. Some of Python's...
number ofacceptingargumentsfunctionpython
https://www.pythonmorsels.com/creating-a-mapping/
Creating a mapping - Python Morsels
creatingmappingpythonmorsels
https://www.pythonmorsels.com/strings-in-python/
Strings in Python - Python Morsels
Apr 19, 2026 - Strings are used to store text-based data.
strings in pythonmorsels
https://www.pythonmorsels.com/how-to-make-a-tuple/
How to make a tuple - Python Morsels
Apr 19, 2026 - Tuples are technically just immutable lists, but by convention we tend to use tuples and lists for quite different purposes.
how to maketuplepythonmorsels
https://www.pythonmorsels.com/mutable-tuples/
Mutable tuples - Python Morsels
Apr 19, 2026 - Tuples are immutable in Python, but tuples can contain mutable objects. So (strangely) if a tuple contains a mutable object, it's possible for the value of...
mutable tuplespythonmorsels
https://www.pythonmorsels.com/pointers/
Variables and objects in Python - Python Morsels
Apr 19, 2026 - Unlike many programming languages, variables in Python are not buckets which
and objectsvariablespythonmorsels
https://www.pythonmorsels.com/how-write-generator-expression/
How to write a generator expression - Python Morsels
Apr 19, 2026 - List comprehensions make lists; generator expressions make generators. Generators are lazy single-use iterables which generate values as you loop over them.
how to writegeneratorexpressionpythonmorsels