File size: 429 Bytes
3f7ca89
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""Weekday of a day of 2025
Composed by composer_v2 from typed moves; read back against its examples. cycle: days of the week (ISO 8601, Monday first), index (x - 6) mod 7"""
import math
import re


def _nums(code):
    return [float(x) for x in re.findall(r"\d+(?:\.\d+)?", str(code))]


def compute(x1):
    seq = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']
    return seq[(int(x1) - 6) % 7]