I have hundreds of string that all have the same format -- 2 integers followed by three floats. An example:
1 10 1.2345 5.4321 10.5647
I just want to take these strings one-by-one and parse them into their respective ints and floats. I can think of a few ways to do this, but I was hoping that python would have something elegant, kind of an inverse of the str.format thing that gets used for writing. This seems like very basic functionality, so I'm sorry if I am asking something that has been answered, but I can't find a solution anywhere. Any thoughts? Thanks.