"""
Recommended Python Style Guide:
https://peps.python.org/pep-0008/#introduction
"""

# In what follows, we don't convert day into a number;
# The type of variable day is string
day = input('Enter the number of the day [1-7]: ')


if day.isdigit(): # Check if the string contains only digits
    if day == '1':
        print('Monday')
    elif day == '2':
        print('Tuesday')
    elif day == '3':
        print('Wednesday')
    elif day == '4':
        print('Thursday')
    elif day == '5':
        print('Friday')
    elif day == '6':
        print('Saturday')
    elif day == '7':
        print('Sunday')
    else:
        print('Number out of range. Retry...')
else:
    print('Invalid number. Retry...')
