, ( !), - :
li = []
ch = ("You have entered an empty string ''\n"
'Type ENTER alone if you want to stop.\n'
'Type anything if you want to record the empty string : ')
while True:
e = raw_input('enter : ')
if e=='':
x = raw_input(ch)
if x=='': break
li.append(e)
print
print li
:
enter : 123
enter : ocean
enter : flower
enter :
You have entered an empty string ''
Type ENTER alone if you want to stop.
Type anything if you want to record the empty string : k
enter : once upon a time
enter : 14 * 4
enter :
You have entered an empty string ''
Type ENTER alone if you want to stop.
Type anything if you want to record the empty string :
['123', 'ocean', 'flower', '', 'once upon a time', '14 * 4']
, :
['123', 'ocean', 'flower', '', 'once upon a time', '14 * 4']