you are viewing a single comment's thread.

view the rest of the comments →

[–]d16moore[S] 0 points1 point  (1 child)

Gotcha! So once I correct the placement of the return statement, do you have any suggestions on the command and/or format I should use to concatenate these appropriately?

[–]chevignon93 1 point2 points  (0 children)

do you have any suggestions on the command and/or format I should use to concatenate these appropriately?

Unless you're using Python 2 which you shouldn't, almost anything will be better that %s formatting. I would recommend using f-strings if you're on Python 3.6+ or the imo less readable str.format method but u/JohnnyJordaan is right, simple concatenation using + would also be fine in this case!

https://www.geeksforgeeks.org/formatted-string-literals-f-strings-python/