vinay h vinay h - 1 year ago 73
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"