I've stopped using datetime.strftime() and just use f-strings. #Python
Did you know that you can do this?
Instead of
>>> somedate.strformat("%Y-%m-%d")
do
>>> F"{somedate:%Y-%m-%d}"
S - Single responsibility principle
O - Open-closed principle
L - Liskov substitution principle
I - Interface segregation principle
D - Dependency inversion principle
These are principles every developer should know
🧵Want to learn more?👇