OP 23 February, 2020 - 08:32 PM
Hii, so I am trying to make a bit of code where it will scan a string and count the amount of repeated words. I believe the pseudo code would be something like this?
readme = "Hello hello hello hello I am cool"
repeats = readme.count(repeatedwords)
So it like makes a int variable called repeats, then reads my string and detects a repeated word and counts it. So repeats would = 4 because it says "Hello" four times..
I hope this makes sense kek
readme = "Hello hello hello hello I am cool"
repeats = readme.count(repeatedwords)
So it like makes a int variable called repeats, then reads my string and detects a repeated word and counts it. So repeats would = 4 because it says "Hello" four times..
I hope this makes sense kek
DISCORD SERVER : CLICK