Mar-25-2017, 12:59 AM
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."
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 NoTeam,"This Team is not on the list."