I loop through the list of all 32 NFL teams and through each iteration the team name is held in team
. I am trying to create a Team()
object referenced by the team name for each team. The first iteration team = 'arizona_cardinals'
.
for team in teams:
# I am looking for a way to say 'arizona_cardinals = Team()'
team.text = Team() # something like this but this is obviously wrong