Computer Science, asked by 9267530338ashvni, 6 months ago

Write a phyton program to read todays date (only date Part) from user. Then display how many days are left in the current month.​

Answers

Answered by Anonymous
1

Answer:

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