I'm really new on Python so I need your help
I have a text like this:
19 , 22.3 ,22.24 , 79 , 40.764767 ,29.932207
1 , 24.38 ,24.50 , 586 , 40.762291 ,29.919300
11 , 23.13 ,23.24 , 105 , 40.763786 ,29.929407
12 , 22.38 ,23.56 , 71 , 40.765610 ,29.941540
5 , 23.2 ,24.15 , 173 , 40.763805 ,29.929356
I tried to split:
array = file.read().split(",")
but result was like so
['19 ', ' 22.3 ', '22.24 ', ' 79 ', ' 40.764767 ', '29.932207 \n1 ',
' 24.38 ', '24.50 ', ' 586 ', ' 40.762291 ', '29.919300 \n11 ', ' 23.13 ',
'23.24 ', ' 105 ', ' 40.763786 ', '29.929407 \n12 ', ' 22.38 ', '23.56 ',
' 71 ', ' 40.765610 ', '29.941540 \n5 ', ' 23.2 ', '24.15 ', ' 173 ',
' 40.763805 ', '29.929356 \n']
But I want to make it without '\n' because after split operation , I have to return string to int . So how can I make it ?