Python, or the art of being clever – Programming Code Examples
Python

Python, or the art of being clever1 min read

As a regular, this morning I devoted myself to my passion for the Clash of Codes. The one I just finished was meant to subtract two dates, like this.

So, as a good Python apprentice, I immediately thought to reuse the components of the standard library, including timedelta, which gives a simple and concise code.




The second, and by the way the only one to have shared his code, wrote it in JavaScript. I will rest it below.

Nothing special, but there is no picture, the standard Python library is really dense and practical, while JavaScript is really lacking. I love Python

 

 

Leave a Comment