Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. snorllaxxx

    Python Task calendar problem

    Here is algorith, help to realize Data Reading: The first step is to read the input data, which is the year and the day of the week of January 1, as well as the dates of all holidays. Calendar Generation: The next step is to create a dictionary, i.e., a calendar for the given year, taking into...
  2. snorllaxxx

    Python Task calendar problem

    import datetime def is_leap_year(year): if year % 4 == 0: if year % 100 == 0: if year % 400 == 0: return True else: return False else: return True else: return False def get_weekday(year, month...
  3. snorllaxxx

    Python Task calendar problem

    Here is the task: Analyzing weekends and holidays around New Year's and May 1st in Russia, the president of Flatlandia has concluded that the rest of its citizens can be drastically optimized. The main goal is to ensure that citizens do not have to work more than 6 consecutive days in a calendar...
Back
Top Bottom