Advertisement
Guest User

Untitled

a guest
Jul 20th, 2016
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. day = list(range(1,31+1))
  2. wday = ('monday', 'tuesday', 'wednesday', 'thusday', 'friday', 'satuday', 'sunday')
  3. if len(day) > len(wday):
  4.     div1, div2 = 1, len(day) // len(wday) + 1  
  5. else:
  6.     div1, div2 = len(wday) // len(day) + 1, 1
  7.  
  8.  
  9. res = zip(day * div1, wday * div2)
  10. print (list(res))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement