for example. I want the program to take the names entered, and the hours they are working, i want it to first do the sort() to sort the hours numerically in order than take than take those and sort() the names of the people alphabetically so for example it would output like this..
Andy 8 - 4
Billy 8 - 4
Anyhow, I have the menu coded which was very simple to do.. This is the code I have so far. not very far sorry :\ I put in comments where I need help at, thanks :]
__________________________________________________________________________
def menu():
print "Welcome to breaksheet V1!"
print ""
print "What would you like to do?"
print ""
print "1) Create New Break Sheet"
print "2) Quit"
print ""
return input ("Choose an option: ")
phonebook = {} ## <-- I created a blank phonebook so whenever they create a name it gets put into the phonebook?
def create(a,b): ## <--- Here is the create option, I'm not sure which code I should use to actually make it when they type in the name it gets put into the phone book
loop = 1
choice = 0
while loop == 1:
choice = menu()
if choice == 1:
print " "
create(input("First Name: "),input("Last Name: "))
[Edited by - orbikk on October 13, 2010 4:21:51 PM]