def weekday(year, month, day):
 return datetime.date(year, month, day).weekday()

def weekday ( year , month , day ) : return datetime . date ( year , month , day ) . weekday ( )
return the position of a weekday: 0 - 7 .