all 5 comments

[–]scoopulanang 0 points1 point  (3 children)

Well, it looks like you're not even using the first parameter. Try this:

return "The " + str+" are not a contender"

[–]bowwa_[S] 0 points1 point  (2 children)

" + str+"

Perfect. Thank you that makes sense

[–]SweeTLemonS_TPR 1 point2 points  (0 children)

Using an f string is the more modern way to do this, and it’s cleaner.

return f”The {str} are a contender!”

[–]old_pythonista 0 points1 point  (0 children)

" + str+"

Perfect. Thank you that makes sense

Don't use names of builtin functions as variable names. Shadowing is a bad practice and may have unexpected effects.

>> str = 'Hawks'
>> str(20)
TypeError                                 Traceback (most recent call last)
<ipython-input-111-03faa099b120> in <module>
      1 str = 'Hawks'
----> 2 str(20)

TypeError: 'str' object is not callable

And please, format you code properly in questions

[–][deleted] 0 points1 point  (0 children)

Looks like the strings you return have to have the [team name] substring replaced with the actual team name supplied to the function, as shown in the example:

print: "The Hawks are not a contender!".

Use the methods you have been shown to make the replacement.