Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started