Old #Python: url.lstrip("https://") # wrong! New Python: url.removeprefix("https://") removeprefix/removesuffix (3.9) do what everyone assumed lstrip/rstrip did. More in my "python --update" course, July 21: buff.ly/lUnsY6i
2 likes 0 replies
?
Old #Python: url.lstrip("https://") # wrong! New Python: url.removeprefix("https://") removeprefix/removesuffix (3.9) do what everyone assumed lstrip/rstrip did. More in my "python --update" course, July 21: buff.ly/lUnsY6i
2 likes 0 replies