loom-benchmark-mbpp / 117 /solution /_reference.py
sqy201x's picture
Add files using upload-large-folder tool
e0656d2 verified
Raw
History Blame Contribute Delete
240 Bytes
def list_to_float(test_list):
res = []
for tup in test_list:
temp = []
for ele in tup:
if ele.isalpha():
temp.append(ele)
else:
temp.append(float(ele))
res.append((temp[0],temp[1]))
return res