Python Forum
Can Anyone Finish this off
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can Anyone Finish this off
#3
(Mar-25-2017, 01:45 AM)ichabod801 Wrote: That's not really going to work. Creating a new variable for each team is going to be a problem. Especially since 'Manchester United' is not a valid variable name (variable names can't have spaces in Python).

This would work much better with a dict:
teams = {'Arsenal': ['David Ospina', 'Kieran Gibbs'], 'Chelsea': ['Jock Cameron', 'Jack Cock'], ...}

thank you really appreciate that but what im struggling on is how to i add the option to add/remove players from the certain teams

thanks again
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,358 Dec-23-2021, 10:30 AM
Last Post: Larz60+
  how to check if file path finish on .csv danlopek14q 4 11,107 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,429 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