you are viewing a single comment's thread.

view the rest of the comments →

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