Hello frnds.!!! need ur help plsss help me.......
Write a program to read today's date (only del part) from user. then display how many days are left in the current month.
Plssss frnd help me ...:(
mummasdollmuski:
....
Answers
Answered by
3
# Python Program to check
# if a date is valid or not
import datetime
def date_validation(day, month, year):
isValidDate = True
try :
datetime.datetime(int(year),
int(month), int(day))
except ValueError :
isValidDate = False
if(isValidDate) :
print ("Yes")
else :
print ("No")
date_validation(10,12,2000)
date_validation(31,11,2000
# if a date is valid or not
import datetime
def date_validation(day, month, year):
isValidDate = True
try :
datetime.datetime(int(year),
int(month), int(day))
except ValueError :
isValidDate = False
if(isValidDate) :
print ("Yes")
else :
print ("No")
date_validation(10,12,2000)
date_validation(31,11,2000
Answered by
0
Computer is in a cord for the phone
Similar questions
Science,
7 months ago
Math,
7 months ago
Math,
1 year ago
English,
1 year ago
CBSE BOARD X,
1 year ago