Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. table = []
  2. length = 0
  3. list_of_match = []
  4. list_of_match = sorted_schedule_dict.items()
  5. for a in range(len(list_of_match)):
  6. if len(list_of_match) > length:
  7. length = len(list_of_match)
  8. mark = '-'
  9. table.append(mark * length)
  10. b = ' ' * (length - 20)
  11. table.append(f" Time | Item{b}")
  12. table.append(mark * length)
  13. for a in range(len(sorted_schedule_dict)):
  14. line = sorted_schedule_dict.popitem()
  15. table.append(f"{line}")
  16. table.append(mark * length)
  17. for a in range(3, (len(table))-1):
  18. for match in re.finditer(r"(\d+)",(table()):'
  19. hours = match[0] // 60
  20. minutes = match[0] % 60
  21. time = f"{hours}:{minutes}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement