Skip to main content

New answers tagged

2 votes

Program that allocates time to tasks based on priority

You devote a not insignificant amount of logic in your program to sorting based on priority. Rather than using unsorted data and repeatedly re-sorting it based on priority, you may wish to use a data ...
Chris's user avatar
  • 4,329
5 votes

Program that allocates time to tasks based on priority

UX When I run the code, I am prompted with: What is your task? But, I have no idea what it is asking me to input. I recommend printing more information prior to ...
toolic's user avatar
  • 15.7k
5 votes

Program that allocates time to tasks based on priority

instance attributes tasks = set() def get_task(): global tasks ... tasks.add((..., ...)) We need a global ...
J_H's user avatar
  • 42.1k
8 votes

Program that allocates time to tasks based on priority

Here are the suggestions that immediately come to mind: Docstrings, Type Hints and Comments It's very difficult to tell what your program is supposed to do and the title of your post nor any ...
Booboo's user avatar
  • 3,456

Top 50 recent answers are included