Jun-23-2019, 11:26 PM
Hi !
After getting a series of numbers in a text file via the command with open, I end up with the following list:
['13.5\n', '17\n', '9.5\n', '12\n', '14\n', '6\n', '5.5\n', '8.5\n', '10.5\n', '29\n', '14\n', '9\n', '15.5\n', '11.5\n', '16\n', '18\n', '13\n', '12.5\n', '15.5\n']
Info: I use python 3
There I block, because I will like to remove all the "\ n" in order to be able to pass them in float in a new list.
If someone has an idea thank you very much!
After getting a series of numbers in a text file via the command with open, I end up with the following list:
['13.5\n', '17\n', '9.5\n', '12\n', '14\n', '6\n', '5.5\n', '8.5\n', '10.5\n', '29\n', '14\n', '9\n', '15.5\n', '11.5\n', '16\n', '18\n', '13\n', '12.5\n', '15.5\n']
Info: I use python 3
There I block, because I will like to remove all the "\ n" in order to be able to pass them in float in a new list.
If someone has an idea thank you very much!