I have a list as
alist = [[], [(u'0.77',)], [(u'0.34',)], [(u'0.12',)], [(u'0',)], [(u'0.0',)], [(u'0',)]]
I'm trying to get it as like this
[0.77, 0.34, 0.12, 0, 0.0, 0] using the statement
rlist= map(lambda a: int(a), alist) but got an error as,
TypeError: int() argument must be a string or a number, not 'list'
I could be missing a basic concept to get it done but not sure how, please do help.