Question: I need help understanding and fixing my output. why i keep getting ' No team conference matches found for the star players. ' output? print
I need help understanding and fixing my output. why i keep getting No team conference matches found for the star players. output?
printThis is a NBA playoffs preference simulator'
teams inputPlease enter your preferred finals matchup:
conference Eastern 'Western'
teams Boston Celtics', 'New York Knicks', 'Indiana Pacers'
Dallas Mavericks', 'Minnesota Timberwolves', 'Denver Nuggets'
starplayer Jason Tatum', 'Jalen Brunson', 'Tyrese Haliburton'
Luka Doncic', 'Anthony Edwards', 'Nikola Jokic'
def getteamconferenceteams conference:
flag set
for index in rangelenconference:
for word in teamsindex:
if word in starplayerindex:
flag.addindex
break
return flag
observeteamtype getteamconferenceteams conference
if observeteamtype:
for index in observeteamtype:
printfYour preferred finals matchup will have starplayerindex facing off against starplayerindex This should be fun to matchup!
else:
printNo team conference matches found for the star players.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
