A few examples that will save the day probably* 95% of time. *I don’t have the actual data but seriously, I bet you’ll find those tips useful more often than not! Introduction This article was originally posted on Medium. I use f-strings every day. The irony is I also every day end up searching the Web to… Continue reading Python F-String Codes I Use Every Day
Articles on datetime
Stuck in import hell? Walk your way out.
By Russell Helmstedter on 22 February 2024
Welcome to Hell Cue the theme song from The Fresh Prince of Bel Air. This is a story that turns out well. But my code got stuck in import hell. I tried to teach my students all about pytest. Instead, for two days, I was sent on a debugging quest. I teach middle school students… Continue reading Stuck in import hell? Walk your way out.
Making plots in your terminal with plotext
By Bob Belderbos on 22 August 2022
In this blog post a quick script to plot the frequency of our blog articles in the terminal. It’s good to see that we’re getting back on track 🙂 The code gist is here. First we import the libraries we are going to use. As always we separate Standard Library modules from 3rd party ones… Continue reading Making plots in your terminal with plotext
Freezegun – Real Joy for Fake Dates in Python
By AJ Kerrigan on 14 August 2020
Freezegun is a library for mocking Python datetimes. It does one thing, does it well, and lets you get on with your life.
3 Cool Things You Can do With the dateutil Module
By Bob Belderbos on 30 November 2018
In this short article I will show you how to use dateutil’s parse, relativedelta and rrule to make it easier to work with datetimes in Python.
Code Challenge 56 – Calculate the Duration of a Directory of Audio Files – Review
By PyBites Team on 30 October 2018
In this article we review last week’s Calculate the Duration of a Directory of Audio Files code challenge.
Code Challenge 56 – Calculate the Duration of a Directory of Audio Files
By PyBites Team on 23 October 2018
Hi Pythonistas, Welcome to Pybites Code Challenge 56! In this challenge we’re asking you to work with directory, files and audio meta data!
Code Challenge 52 – Create your own Pomodoro Timer – Review
By PyBites Team on 1 October 2018
In this article we review last week’s Create your own Pomodoro Timer code challenge.
Code Challenge 52 – Create your own Pomodoro Timer
By PyBites Team on 24 September 2018
Hi Pythonistas, Welcome to Pybites Code Challenge 52! In this challenge we get you create your very own Pomodoro Timer!
Twitter Digest 2018 Week 10
By PyBites Team on 4 March 2018
Every weekend we share a curated list of 15 cool things (mostly Python) that we found / tweeted throughout the week.