Instructions
Requirements and Specifications
Source Code
"""
ntroduction to Data Structures, Spring 2022, UMA
Program: ESPN.py
Author:
Date Created:
Description:
"""
class Team():
""" """
def __init__(self, name):
""" """
pass
def addPlayer(self, firstName, lastName, position):
""" """
pass
def removePlayer(self, firstName, lastName):
""" """
pass
def listPlayers(self):
""" """
pass
def main():
""" A simple test of the class
A correct program will create output like this:
Current Patriots players:
Mac Jones, Quarterback
Matthew Slater, Special Teams
Jonnu Smith, Tight End
N'Keal Harry, Bench Warmer
Matthew Judon, Linebacker
current Patriots players:
Mac Jones, Quarterback
Matthew Slater, Special Teams
Jonnu Smith, Tight End
Matthew Judon, Linebacker
"""
patriots = Team('Patriots')
patriots.addPlayer("Mac", "Jones", "Quarterback")
patriots.addPlayer("Matthew", "Slater", "Special Teams")
patriots.addPlayer("Jonnu", "Smith", "Tight End")
patriots.addPlayer("N'Keal", "Harry", "Bench Warmer")
patriots.addPlayer("Matthew", "Judon", "Linebacker")
patriots.listPlayers()
print()
patriots.removePlayer("N'Keal", "Harry")
patriots.listPlayers()
main()