Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.57 KB | None | 0 0
  1. def join_command_activity_list(comlist, actlist):
  2.     time = 0
  3.     time2 = 0
  4.     joined = [[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []]
  5.  
  6.     while time <= 25:
  7.         for i in comlist:
  8.             for p in i:
  9.                 if int(p[0:2]) == time:
  10.                     joined[time].append(i)
  11.         time += 1
  12.  
  13.     while time2 <= 25:
  14.         for t in actlist:
  15.             for h in t:
  16.                 if int(h[0:2]) == time2:
  17.                     joined[time2].append(h)
  18.         time2 += 1
  19.     return sorted(joined)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement