Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data = ['350 1.06k', '351 1.10k', '352 1.15k']
- def convert(item):
- item = item.split()
- item[1] = str(float(item[1][:-1]) * 1000)[:-2]
- return ' '.join(item)
- res = [convert(i) for i in data]
- print(res)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement