#! /usr/bin/env python
# coding:utf-8

str = "Now I need a drink, alcoholic of course, after the heavy lectures involving quantum mechanics."
str = str.replace('.', "")
str = str.replace(',', "")
splitted = str.split()

# print(str)

list = []

for s in splitted:
  list.append(len(s))

print(list)
9b47f10611832c2f04eedc3160b0db5e998dca5f
<mask token>

<mask token>
for s in splitted:
    list.append(len(s))
print(list)

str = (
    'Now I need a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.'
    )
str = str.replace('.', '')
str = str.replace(',', '')
splitted = str.split()
list = []
for s in splitted:
    list.append(len(s))
print(list)

#! /usr/bin/env python
# coding:utf-8

str = "Now I need a drink, alcoholic of course, after the heavy lectures involving quantum mechanics."
str = str.replace('.', "")
str = str.replace(',', "")
splitted = str.split()

# print(str)

list = []

for s in splitted:
  list.append(len(s))

print(list)