print('345nov'.rstrip('nov'))
the code above prints what you would expect: 345
So why does print('345v'.rstrip('nov'))
print the same thing. The string doesn't end with "nov". It only ends with "v". But rstrip()
strips it all the same. Either way, how can I make it ignore this behavior and not strip anything unless the ending string matches it exactly.