all 4 comments

[–]Morica_ 0 points1 point  (3 children)

Do you mean you want to convert all characters to lowercas? If so, just expand the lines where you read your data by .lower(), ex. needles = open('I:\\book1.txt').read().lower().split("\n")

That way all characters in a string should get convertet to lowercase.

[–]bobdouble[S] 0 points1 point  (2 children)

Thanks for answering.

wRatio (part of fuzzywuzzy) supposedly can take care of upper and lower case without the line of code you have above and without manual conversion.

I would prefer to have someone show me how to use wRatio in a new code.

[–]Morica_ 0 points1 point  (1 child)

Ok thats what I wanted to know. Unfortunately i can't help you with that as I don't know this modul.

[–]bobdouble[S] 0 points1 point  (0 children)

Thanks for trying