Python Forum
Can Anyone Finish this off
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can Anyone Finish this off
#1
sorry im new here and new to python. can anyone help me finish this piece of code for me. 

really sorry im not sure how to put this code in a little box

#List of football Teams
>>> #List of Football players in the team
>>> #add a football team
>>> #add football players in the team
>>> #remove a football team
>>> #remove football players
>>> 

#These will be the starting teams availbe in the list
>>> teams = ["Arsenal", "Chelsea", "Liverpool", "Manchester United", "Manchester City"]

Arsenal = ["sample1, "Sample2", "Sample3", "Samlpe4"]

Chelsea = ["Test1", "Test2", "Test3"]

Liverpool = ["example1", "example2"]

Manchester United = ["player", "player1"]

Manchester City = ["player4", "player5"]


choice = "z"

while choice != "0":
    print " Options Menu "

    1: Add a Team
    2: Remove a Team
    3: Add Players to a Team
    4: Remove Players from a Team
    0: Quit

    choice = raw_input("Type The Number Realated to your Option(1,2,3,4(or 0 to quit):")
    
    if choice == "1":
           newTeam = raw_input("\nEnter a Team you would like to add: ")
           names.append(teams)

    elif choice == "2":
    removeTeam = raw_input("\nEnter the team you would like to remove: ")
    if removeTeams in teams:
    teams.remove(teams)
    else:
    print
    print NoTeam,"This Team is not on the list."
Reply


Messages In This Thread
Can Anyone Finish this off - by FeaRoNz - Mar-25-2017, 12:59 AM
RE: Can Anyone Finish this off - by ichabod801 - Mar-25-2017, 01:45 AM
RE: Can Anyone Finish this off - by FeaRoNz - Mar-25-2017, 02:14 AM
RE: Can Anyone Finish this off - by Larz60+ - Mar-25-2017, 02:15 AM
RE: Can Anyone Finish this off - by wavic - Mar-25-2017, 02:40 AM
RE: Can Anyone Finish this off - by Larz60+ - Mar-25-2017, 10:12 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Could someone help me finish this ASAP JimmyDricks 7 2,407 Dec-23-2021, 10:30 AM
Last Post: Larz60+
  how to check if file path finish on .csv danlopek14q 4 11,213 Apr-04-2021, 09:50 AM
Last Post: danlopek14q
  Need help to finish the hat on the snowman in this Python drawing soowoosamuel 1 3,469 Apr-10-2019, 06:31 AM
Last Post: j.crater

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020