PythonMorsels's profile picture. Giving life-long learners a low-stress way to hone their #Python skills. 🐍🍪 Write beautiful code. ✨ Made by @treyhunner 💖

Python Morsels

@PythonMorsels

Giving life-long learners a low-stress way to hone their #Python skills. 🐍🍪 Write beautiful code. ✨ Made by @treyhunner 💖

Fixado

Python Morsels gives professional developers a low-stress way to hone their Python skills, through weekly screencasts and exercises. 🐍🍪 It's not a course. And it's not for complete beginners. Try it out: pythonmorsels.com/all-python-exe… More details 👇

pythonmorsels.com

Python skill-building for professional developers

Practice a new intermediate-level Python concept every week

Looking for an excuse to deepen your #Python skills? I made @PythonMorsels for you. It's not an Intro to Python course. It's both not a course & includes topics well beyond introductory Python. Don't think "tennis class". Think "weekly tennis practice". 🎾 But for Python! 🐍



You'll almost always see tuple unpacking used whenever enumerate is used. for n, fruit in enumerate(favorite_fruits, start=1): print(n, fruit) #Python pym.dev/looping-with-i…


"Creating a singleton class might seem a little bit misleading to someone using this class." 😖 #Python youtube.com/watch?utm_camp…

PythonMorsels's tweet card. Making singletons in Python

youtube.com

YouTube

Making singletons in Python


If something is important, it deserves a name. #Python's for loops names the items themselves, not indexes. pythonmorsels.com/writing-a-for-…


"For a very simple command-line program, you could just rely on #Python to close the file automatically when your Python program exits." youtube.com/watch?index=1&…

PythonMorsels's tweet card. Read from a file in Python

youtube.com

YouTube

Read from a file in Python


"In #Python, you can customize what happens when you ask objects whether they're equal to each other." 🐍🟰 pym.dev/overloading-eq…


If we want to start counting at a different number, we can set the start keyword argument when calling enumerate. for n, fruit in enumerate(favorite_fruits, start=1): print(n, fruit) #Python pym.dev/looping-with-i…


"Turn a regular function into a generator function by replacing append calls with yield statements." 🐍 #Python pym.dev/how-to-create-…


Loading...

Something went wrong.


Something went wrong.