Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- day = list(range(1,31+1))
- wday = ('monday', 'tuesday', 'wednesday', 'thusday', 'friday', 'satuday', 'sunday')
- if len(day) > len(wday):
- div1, div2 = 1, len(day) // len(wday) + 1
- else:
- div1, div2 = len(wday) // len(day) + 1, 1
- res = zip(day * div1, wday * div2)
- print (list(res))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement