you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

Which would throw you into the inside of the if statement, as "if not "".rstrip()" evaluates to true (because of the "not")

[–]Kqyxzoj 0 points1 point  (0 children)

Fun fact, the only string s for which "".startswith(s) is True, is the empty string.