def list_format():
lt= """ID, Color, Brand, Price, Outstanding, Type
02, Blue, Audi, 200.12, True, 2
06, Red, BMW, 2357.13, True, 1
13, Black, Ford, 252676.12, False, 5"""
result_list=[ i.split(',') for i in lt.split('\n')]
for i,val in enumerate(result_list):
for k,v in enumerate(val):
result_list[i][k]= result_list[i][k].replace(' ','')
if result_list[i][k].isdigit() and k==0:
result_list[i][k]=int(result_list[i][k])
if k==3 and i!=0:
result_list[i][k]=float(result_list[i][k])
if k==4 and i!=0:
result_list[i][k]=bool(result_list[i][k])
print(result_list)
list_format()
[['ID', 'Color', 'Brand', 'Price', 'Outstanding', 'Type'], [2, 'Blue', 'Audi', 200.12, True, '2'], [6, 'Red', 'BMW', 2357.13, True, '1'], [13, 'Black', 'Ford', 252676.12, True, '5']]