On Wed, 8 Jun 2022 at 18:20, Dave <d...@looktowindward.com> wrote: > > PS > > I’ve also tried: > myCompareFile1 = myTitleName > myCompareFile1.replace("\u2019", "'") > myCompareFile2 = myCompareFileName > myCompareFile2.replace("\u2019", "'") > Which also doesn’t work, the replace itself work but it still fails the > compare? >
This is a great time to start exploring what actually happens when you do "myCompareFile2 = myCompareFileName". I recommend doing some poking around with strings (which are immutable), lists (which aren't), and tuples (which aren't, but can contain mutable children). ChrisA -- https://mail.python.org/mailman/listinfo/python-list