I am trying to compare to strings in Python and noticed that when a dash/hyphen is present in the string it will not equate identical strings. For example:
>>>teststring = 'newstring'
>>>teststring is 'newstring'
True
Then, if I add a dash
>>>teststring = 'new-string'
>>>teststring is 'new-string'
False
Why is that the case, and what would be the best way to compare strings with dashes?