test-mdbook/make_list.py

36 lines
394 B
Python
Raw Normal View History

2023-07-02 12:38:40 +10:00
# initializing string representation of a list
ini_list = """[
massacre
knock off
do away with
bump off
rub out
do in
croak
blow away
cut down
butcher
shoot down
claim
carry off
fell
blot out
eliminate
eradicate
mow (down)
smite
wipe out
exterminate
annihilate
zap
]"""
# Converting string to list
res = ini_list.strip().strip('][').split('\n') #.split(' ')
print([i for i in res if i])