Copy to ClipboardRawPreviewS= str(input()) count=0; for i in range(len(S)): if i!=" ": count=count+1; print(count) letterCount00technoreckgoodPracticeprogrammingto count the number of valid characters in a given string0 CommentsAdd CommentLog in to add a comment