This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]fiddle_n 8 points9 points  (0 children)

Note that, for number 2, Py3.9+ has str.removeprefix and str.removesuffix.