oh amazing : ) that's time saver i was starting to think I'll have to do all sort of striping, tokenizing , converting
thanks a lot Glenton, i'm go read up on eval more. so i know better
User Profile
Collapse
-
How to clean up string in to list of tuples of floats
Hello I want to ask for some help here, I got this data as a string
s = "[(0, 0.5, 0), (3.7, 5, 6), (5, 6, 7), (9, 9, 9), (12.607, 10, 2)]"
but I would like to have it as it were actual list of tuples with floats.
any tips would be great.
Thank you
No activity results to display
Show More
Leave a comment: