May-19-2021, 12:34 PM
Hi all,
Im learning now the re module and I'm trying to use it to find how many times the words "i" and "i'm" in the song Party Rock Anthem.
I changed the song to be in lowercase and wrote this:
appreciate any help!
Im learning now the re module and I'm trying to use it to find how many times the words "i" and "i'm" in the song Party Rock Anthem.
I changed the song to be in lowercase and wrote this:
i_in_new = (re.findall(r"\bi\b|\bi\'m\\b" ,readable_new))but my out put is only the numbers of i and not i'm,, I think the issue is that it sees the: ' as a string but I dont know how to change it.
appreciate any help!