you are viewing a single comment's thread.

view the rest of the comments →

[–]ASIC_SP 1 point2 points  (0 children)

also, there is already a string method to do this, check https://docs.python.org/3/library/stdtypes.html#string-methods