Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- table = []
- length = 0
- list_of_match = []
- list_of_match = sorted_schedule_dict.items()
- for a in range(len(list_of_match)):
- if len(list_of_match) > length:
- length = len(list_of_match)
- mark = '-'
- table.append(mark * length)
- b = ' ' * (length - 20)
- table.append(f" Time | Item{b}")
- table.append(mark * length)
- for a in range(len(sorted_schedule_dict)):
- line = sorted_schedule_dict.popitem()
- table.append(f"{line}")
- table.append(mark * length)
- for a in range(3, (len(table))-1):
- for match in re.finditer(r"(\d+)",(table()):'
- hours = match[0] // 60
- minutes = match[0] % 60
- time = f"{hours}:{minutes}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement