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