home.social

#pythoninapost — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #pythoninapost, aggregated by home.social.

  1. Closing out this initial series of posts with one last f-string related nugget which will also be new in 3.12✨

    I really enjoyed creating these and learnt a lot as well! So if you’re keen for more of this sort of content, then definitely drop a follow 🚀

  2. Here’s something new coming to Python 3.12 ✨

    It’s going to make working with f-strings a whole lot nicer!

  3. Another neat trick to enhance the formatting of your text output is to add padding and alignment to it using f-strings! ✨🚀

    See how below👇

  4. The ternary operator in Python is pretty nifty especially when combined with F-strings! ✨🐍

    Here’s how to use it 👇

  5. Turn boring dates into stylish statements with Python’s F-strings! 🚀

    Using F-strings, you can effortlessly format datetime values to suit your needs! 📆✨

    Check it out:

  6. 💡Want to display numbers and currency neatly in Python? F-strings have got your back!

    Give this a try:

  7. I've decided to create a Python programming mastery series which I’m calling 'Python in a Post' 🎉

    The idea is that with each post, the reader will perhaps learn a new Python concept, tip, or trick that can immediately be put into action.

    If you're interested, drop a follow and join me on this journey to Python mastery! 💻🐍