diff options
Diffstat (limited to 'progs/a480.py')
-rw-r--r-- | progs/a480.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/progs/a480.py b/progs/a480.py new file mode 100644 index 0000000..7d8db7d --- /dev/null +++ b/progs/a480.py @@ -0,0 +1,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))
\ No newline at end of file |