This is my solution resulting in an error. Returns 0
PS: I\'d still love a fix to my code :)
from collections import Counter import
n=str(input("Enter word: ").replace(" ","")) ans=0 for i in n: ans=ans+1 print(ans)