Tuesday, June 26, 2018

How many days are left to 4th of July using Python?

Normally one is looking forward to a particular day such as birthday, Christmas day, fourth of July etc. Date and time being crucial information every programming language has date and time related data types and related methods.

In Python you need to import datetime and date and the date is in the format (year,month,day).
Here is how find the difference between today and the 4th of July.

In this shell program you get quite a bit of help in coding.



No comments: