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


this question has answer here:

please suggest me on following. how find whether particular day weekday or weekend in python?

import datetime  weekno = datetime.datetime.today().weekday()  if weekno<5:     print "weekday" else:     print "weekend" 

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -