programming-examples/python/Date/Python program to print next 5 days starting from today.py

4 lines
128 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
import datetime
base = datetime.datetime.today()
for x in range(0, 5):
print(base + datetime.timedelta(days=x))