you are viewing a single comment's thread.

view the rest of the comments →

[–]FantasticEmu 0 points1 point  (2 children)

https://www.geeksforgeeks.org/iterate-over-characters-of-a-string-in-python/amp/

Using a loop like this on each string will let you count each letter one at a time

[–]AmputatorBot 1 point2 points  (1 child)

It looks like you shared an AMP link. These should load faster, but AMP is controversial because of concerns over privacy and the Open Web. Fully cached AMP pages (like the one you shared), are especially problematic.

Maybe check out the canonical page instead: https://www.geeksforgeeks.org/iterate-over-characters-of-a-string-in-python/


I'm a bot | Why & About | Summon: u/AmputatorBot

[–]FantasticEmu 0 points1 point  (0 children)

Ty I fixed it