so if i have like 100 sublists in have to replace strings into integer L = ['2013', 'Patrick', 'M', '2566']
I must convert 2013 and such numbers into integer for all the sublists. I tried: Assume 4 elements per sublist newlist = [map(int,x) for x in L[0][:5]]
but obviously I keep getting error because 'patrick' cannot be converted.