1 2 3 4 5 6 7 8 9 10 11 12
from cs50 import get_string text = get_string("Text: ") s = 0.0 # sentences w = 1.0 # words l = 0.0 # letters c = '' for i in range(len(text)): c = text[i]