summaryrefslogtreecommitdiff
path: root/progs/a480.py
blob: 7d8db7d81857ab61bd99d80722148460b68d950e (plain)
1
2
3
4
5
6
7
8
9
10
11
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 (str(res))