Add one day

Write a function @add_one_day(d, m, y)@ that receives three positive integers dd, mm, yy corresponding to a valid date of a non-leap year, and returns the date of the following day.

Sample session

Observations

If you want to test your program locally, remember to include the following lines at the end of the file:

if __name__ == "__main__":
   import doctest
   doctest.testmod(verbose=True)

Problem information

Author: ProAl

Generation: 2026-01-25T14:02:39.634Z

© Jutge.org, 2006–2026.
https://jutge.org