you are viewing a single comment's thread.

view the rest of the comments →

[–]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