Hi,
I'm looking to compare strings (that have been pulled in from a csv) to a string created from an input.
All works fine, until the string contains an apostrophe.
so e.g if the csv contains "I don't know", and the user has typed "I don't know", Python is comparing:
many thanks in advance
I'm looking to compare strings (that have been pulled in from a csv) to a string created from an input.
All works fine, until the string contains an apostrophe.
so e.g if the csv contains "I don't know", and the user has typed "I don't know", Python is comparing:
csv: 'I don't know' user input : 'I don\\'t know' note - previously I wrote: user input : 'I don\\'t know\\''any thoughts on how to get past this?
many thanks in advance