vinay h vinay h - 11 months ago 67
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"