Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def join_command_activity_list(comlist, actlist):
- time = 0
- time2 = 0
- joined = [[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []]
- while time <= 25:
- for i in comlist:
- for p in i:
- if int(p[0:2]) == time:
- joined[time].append(i)
- time += 1
- while time2 <= 25:
- for t in actlist:
- for h in t:
- if int(h[0:2]) == time2:
- joined[time2].append(h)
- time2 += 1
- return sorted(joined)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement