PY
py
1
2
3
4
5
6
7
8
9
10
11
12
x = input("")
punctuation='''@$&_():;"!/+?'.,-][*%¿~><{}¡¢°'''
no_punct=''''''
for char in x:
if char not in punctuation:
no_punct=no_punct + char
x=no_punct
print(x)
words=x.split()
average=sum(len(word) for word in words / len(words))
print(average)
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run