QuestionQuestion

Party List System
The program partyList.py uses methods and a built in function to manipulate a list of the names of people invited to a party. The program uses menu to allow a user to:
- add a name to a list of people to invite to a party,
- remove a name from a list of people invited to a party
- sort the names of people invited in alphabetical order
- display the names of those invited
- display the number of people invited
- quit the program.

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

# Get user choice
    choice = raw_input("Type in your choice (a,b,c,d,e - or q to exit): ")

    # add a new name
    if choice == "a":
       newName = raw_input("\nEnter a name to add to the party list: ")
       names.append(newName)

    # remove a name
    elif choice == "b":
       oldName = raw_input("\nEnter the name you wish to remove: ")
       if oldName in names:
            names.remove(oldName)
       else:
            print()
            print(oldName + " is not in the party list.")

    # display those invited
    elif choice == "c":
       print("\nYou have invited:")
       for i in names:
            print(i)...

By purchasing this solution you'll be able to access the following files:
Solution.py and Solution.docx.

50% discount

Hours
Minutes
Seconds
$45.00 $22.50
for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Python Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats