Python Zdobądź nazwę dnia
import datetime
now = datetime.datetime.now()
print(now.strftime("%A"))
Proud Peacock
import datetime
now = datetime.datetime.now()
print(now.strftime("%A"))
>>> import datetime
>>> datetime.datetime.today()
datetime.datetime(2012, 3, 23, 23, 24, 55, 173504)
>>> datetime.datetime.today().weekday()
4
today_day = date.today()
days = ["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","sunday"]
print("Today weekday is ",days[today_day.weekday()])
import datetime
now = datetime.datetime.now()
print(now.strftime("%A"))