

# Defining keys that each dictionary will have
p1 = {
  'name':'Angus',
  'age':77,
  'sex':'male',
  'country':'AUS',
  'height':'172cm',
  'plays':'right handed',
  'wins':45,
  'losses': '34',
  'ranking':'1',
  'tournament wins':'0',
  'matches played':'81',

}

p2 = {
  'name':'Bob',
  'age':18,
  'sex':'male',
  'country':'AUS',
  'height':'172cm',
  'plays':'right handed',
  'wins':47,
  'losses': '34',
  'ranking':'2',
  'tournament wins':'dad',
  'matches played':'81',
}

p3 = {
  'name':'Taylor',
  'age':99,
  'sex':'male',
  'country':'AUS',
  'height':'172cm',
  'plays':'right handed',
  'wins':21,
  'losses': '34',
  'ranking':'3',
  'tournament wins':'0',
  'matches played':'81',
}

p4 = {
  'name':'Jack',
  'age':56,
  'sex':'male',
  'country':'AUS',
  'height':'172cm',
  'plays':'right handed',
  'wins': 67,
  'losses': '34',
  'ranking':'4',
  'tournament wins':'0',
  'matches played':'81',
}

p5 = {
  'name':'Zed',
  'age':77,
  'sex':'male',
  'country':'AUS',
  'height':'172cm',
  'plays':'right handed',
  'wins':45,
  'losses': '34',
  'ranking':'5',
  'tournament wins':'0',
  'matches played':'81',

}

p6 = {
  'name':'Crane',
  'age':18,
  'sex':'male',
  'country':'AUS',
  'height':'172cm',
  'plays':'right handed',
  'wins':47,
  'losses': '34',
  'ranking':'6',
  'tournament wins':'dad',
  'matches played':'81',
}

p7 = {
  'name':'Jacob',
  'age':99,
  'sex':'male',
  'country':'AUS',
  'height':'172cm',
  'plays':'right handed',
  'wins':21,
  'losses': '34',
  'ranking':'7',
  'tournament wins':'0',
  'matches played':'81',
}

p8 = {
  'name':'Elvis',
  'age':56,
  'sex':'male',
  'country':'AUS',
  'height':'172cm',
  'plays':'right handed',
  'wins': 67,
  'losses': '34',
  'ranking':'8',
  'tournament wins':'0',
  'matches played':'81',
}

# List storing all players
players = [p1, p2, p3, p4, p5, p6, p7, p8]

#Searches through the list of players and displays all information stored inside their dictionary
'''
def getProfile(ent):
  name = ent.get()
  i = 0
  found = False
  while found == False and i < len(players):
    if players[i]['name'] == name:
      found = True
      print(players[i])
    i = i+1
  if found == False:
    print('No player')
'''
    
  
  
  
  
#Adds a new player profile to the list of players
def addPlayer(name,age,height,plays):
  i = 0
  print(len(players))
  
#Removes an existing player from the list of players
def removePlayer(name):
  print('h')







 
  
 
  



92a51cbb4c5b00b39f578cc83d0a15b1ff94695a
<mask token>

<mask token>


def addPlayer(name, age, height, plays):
    i = 0
    print(len(players))


<mask token>

<mask token>


def addPlayer(name, age, height, plays):
    i = 0
    print(len(players))


def removePlayer(name):
    print('h')

p1 = {'name': 'Angus', 'age': 77, 'sex': 'male', 'country': 'AUS', 'height':
    '172cm', 'plays': 'right handed', 'wins': 45, 'losses': '34', 'ranking':
    '1', 'tournament wins': '0', 'matches played': '81'}
p2 = {'name': 'Bob', 'age': 18, 'sex': 'male', 'country': 'AUS', 'height':
    '172cm', 'plays': 'right handed', 'wins': 47, 'losses': '34', 'ranking':
    '2', 'tournament wins': 'dad', 'matches played': '81'}
p3 = {'name': 'Taylor', 'age': 99, 'sex': 'male', 'country': 'AUS',
    'height': '172cm', 'plays': 'right handed', 'wins': 21, 'losses': '34',
    'ranking': '3', 'tournament wins': '0', 'matches played': '81'}
p4 = {'name': 'Jack', 'age': 56, 'sex': 'male', 'country': 'AUS', 'height':
    '172cm', 'plays': 'right handed', 'wins': 67, 'losses': '34', 'ranking':
    '4', 'tournament wins': '0', 'matches played': '81'}
p5 = {'name': 'Zed', 'age': 77, 'sex': 'male', 'country': 'AUS', 'height':
    '172cm', 'plays': 'right handed', 'wins': 45, 'losses': '34', 'ranking':
    '5', 'tournament wins': '0', 'matches played': '81'}
p6 = {'name': 'Crane', 'age': 18, 'sex': 'male', 'country': 'AUS', 'height':
    '172cm', 'plays': 'right handed', 'wins': 47, 'losses': '34', 'ranking':
    '6', 'tournament wins': 'dad', 'matches played': '81'}
p7 = {'name': 'Jacob', 'age': 99, 'sex': 'male', 'country': 'AUS', 'height':
    '172cm', 'plays': 'right handed', 'wins': 21, 'losses': '34', 'ranking':
    '7', 'tournament wins': '0', 'matches played': '81'}
p8 = {'name': 'Elvis', 'age': 56, 'sex': 'male', 'country': 'AUS', 'height':
    '172cm', 'plays': 'right handed', 'wins': 67, 'losses': '34', 'ranking':
    '8', 'tournament wins': '0', 'matches played': '81'}
players = [p1, p2, p3, p4, p5, p6, p7, p8]
<mask token>


def addPlayer(name, age, height, plays):
    i = 0
    print(len(players))


def removePlayer(name):
    print('h')



# Defining keys that each dictionary will have
p1 = {
  'name':'Angus',
  'age':77,
  'sex':'male',
  'country':'AUS',
  'height':'172cm',
  'plays':'right handed',
  'wins':45,
  'losses': '34',
  'ranking':'1',
  'tournament wins':'0',
  'matches played':'81',

}

p2 = {
  'name':'Bob',
  'age':18,
  'sex':'male',
  'country':'AUS',
  'height':'172cm',
  'plays':'right handed',
  'wins':47,
  'losses': '34',
  'ranking':'2',
  'tournament wins':'dad',
  'matches played':'81',
}

p3 = {
  'name':'Taylor',
  'age':99,
  'sex':'male',
  'country':'AUS',
  'height':'172cm',
  'plays':'right handed',
  'wins':21,
  'losses': '34',
  'ranking':'3',
  'tournament wins':'0',
  'matches played':'81',
}

p4 = {
  'name':'Jack',
  'age':56,
  'sex':'male',
  'country':'AUS',
  'height':'172cm',
  'plays':'right handed',
  'wins': 67,
  'losses': '34',
  'ranking':'4',
  'tournament wins':'0',
  'matches played':'81',
}

p5 = {
  'name':'Zed',
  'age':77,
  'sex':'male',
  'country':'AUS',
  'height':'172cm',
  'plays':'right handed',
  'wins':45,
  'losses': '34',
  'ranking':'5',
  'tournament wins':'0',
  'matches played':'81',

}

p6 = {
  'name':'Crane',
  'age':18,
  'sex':'male',
  'country':'AUS',
  'height':'172cm',
  'plays':'right handed',
  'wins':47,
  'losses': '34',
  'ranking':'6',
  'tournament wins':'dad',
  'matches played':'81',
}

p7 = {
  'name':'Jacob',
  'age':99,
  'sex':'male',
  'country':'AUS',
  'height':'172cm',
  'plays':'right handed',
  'wins':21,
  'losses': '34',
  'ranking':'7',
  'tournament wins':'0',
  'matches played':'81',
}

p8 = {
  'name':'Elvis',
  'age':56,
  'sex':'male',
  'country':'AUS',
  'height':'172cm',
  'plays':'right handed',
  'wins': 67,
  'losses': '34',
  'ranking':'8',
  'tournament wins':'0',
  'matches played':'81',
}

# List storing all players
players = [p1, p2, p3, p4, p5, p6, p7, p8]

#Searches through the list of players and displays all information stored inside their dictionary
'''
def getProfile(ent):
  name = ent.get()
  i = 0
  found = False
  while found == False and i < len(players):
    if players[i]['name'] == name:
      found = True
      print(players[i])
    i = i+1
  if found == False:
    print('No player')
'''
    
  
  
  
  
#Adds a new player profile to the list of players
def addPlayer(name,age,height,plays):
  i = 0
  print(len(players))
  
#Removes an existing player from the list of players
def removePlayer(name):
  print('h')







 
  
 
  


