vinay h vinay h - 1 year ago 113
Python Question

how to find current day is weekday or weekends in Python?

Please suggest me on the following.
How to find whether a particular day is weekday or weekend in Python?

Answer Source
import datetime

weekno =

if weekno<5:
    print "Weekday"
    print "Weekend"
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download