Saved Bookmarks
| 1. |
Write a phyton program to read todays date (only date Part) from user. Then display how many days are left in the current month. |
|
Answer» ong>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) |
|