Computer Science, asked by gt801956, 9 months ago

write a program to read today's date from user then display how many days are left in current month *

Answers

Answered by harnathyadav2907
3

Explanation:

d, m, y = map(int, input('Enter date in DD MM YYYY format : ').split())

mon = {1:31, 2:28, 3:31, 4:30, 5:31, 6:30, 7:31, 8:31, 9:30, 10:31, 11:30, 12:31}

print('Days left : ', mon[m]-d)

Similar questions