QUOTE(code_m @ 11 Oct, 2009 - 08:58 AM)

I am not sure what you mean, but a dictionary would likely be more useful.
d = {1: "Level one", 2: "Level two", 3: "Level three"}A dictionary can hold any data type (including classes and functions). So say you define a function for each level and place them in a dictionary named "priorities", you could use it such as this:
python
level = raw_input("Priority Level: ")
execute_level = priorities[level]()Of course you would want to handle a ValueError when you ask the user for input since you want an int type ;-)
Im trying to create a process scheduling algorithm that has a count that calculates the time from 0 to 1000. within that time frame different processes are scheduled to execute based on their arrival time and execution time. In additon, processes that have a higher priority are scheduled before processes with lower priorities.