Lets say I have a .txt file that the first few lines of data looks like this:
v 0.188267 3.068606 0.003011 v -0.188267 3.068606 0.003011 v 0.168431 3.068606 0.013613 v -0.168431 3.068606 0.013613 v 0.146908 3.068606 0.020142 v -0.146908 3.068606 0.020142 v 0.124524 3.068606 0.022347
Ok, my goal is to be able to import the file into pycharm. And then I want to write an algorithm that turns the data into this format:
(0.188267, 3.068606, 0.003011), (-0.188267, 3.068606, 0.003011), (0.168431, 3.068606, 0.013613), (-0.168431, 3.068606, 0.013613), (0.146908, 3.068606, 0.020142), (-0.146908, 3.068606, 0.020142), (0.124524, 3.068606, 0.022347),
Then from there I want the data to be exported into another .txt file. In actuality the original .txt file is over 40,000 lines and doing this manually is tedious and time consuming.