Consider the below code,
string_new=raw_input('Enter data')
The input supplied was:
'aaa' 'bbb' 23 21 56 98 'ccc'
Each of the above values were space seperated
We require this to be converted to list:
list=['aaa','bbb',23,21,56,98,'ccc']
I tried previous solutions as given on Get a list of numbers as input from the user
and How to make a list from a raw_input in python?
using
map(int,string_new.split())
However that works only for integers and we have different datatypes elements passed as an input and separated by space.
Any suggestions...