Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

next day in python without using datetime

import datetime                                 
from datetime import timedelta                  
                                                
d = int(input('enter the day: '))               
m = int(input('enter the month: '))             
y = int(input('enter the year: '))              
                                                
today = datetime.date(y, m, d)                  
tom = today + timedelta(days=1)                 
print('next day is', tom)                       
 
PREVIOUS NEXT
Tagged: #day #python #datetime
ADD COMMENT
Topic
Name
4+7 =