def day_generator():
    while True:
        for w in ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday',
            'Saturday', 'Sunday']:
            yield w
g = day_generator()
for _ in range(10):
    pass
Infinite generator in Python for days of week