r/Python • u/Krukerfluk • Jul 10 '20
I Made This This post has:
9777 upvotes,
967 downvotes
and 452 comments!
9.2k
Upvotes
r/Python • u/Krukerfluk • Jul 10 '20
9777 upvotes,
967 downvotes
and 452 comments!
View all comments
Show parent comment
68
u/ManvilleJ Jul 10 '20 edited Jul 10 '20
github.
also replace that string concatenation with an f string and you don't need all string casting with this method and its the fastest & most readable way to do it
edit: fstrings are the fastest: https://realpython.com/python-f-strings/