Light Mode
Dark Mode
Feedback from user wan.t.chen
Hi,

I have checked on my PC that my code is well done. Here is the code:

from datetime import date

def checkio(from_date, to_date):
    date3 = to_date - from_date
    k = date3.days//7 * 2
    if (k==0 and to_date.weekday() < from_date.weekday()) :
        k+=2
    if (from_date.weekday() >= 5):
        k+=1
    if (from_date.weekday() >= 5):
        k+=1
    return k

==============================
But I got this error from output:
ImportError: No module named 'r_datetime'
 <module>, 1

Could you please check what's the problem?
I use python 3.3

Thanks.

Best regards.
Wan-Ting

URL from: http://www.checkio.org/mission/weekend-counter/solve/
HTTP_USER_AGENT: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/31.0.1650.63 Chrome/31.0.1650.63 Safari/537.36
  • feedback
Created: Feb. 25, 2014, 6:52 p.m.
Updated: Feb. 25, 2014, 8:30 p.m.
0
7
User avatar
wan.t.chen