Mar-24-2019, 01:19 PM
Thanks for the note, I have modified the name to avoid conflict with built in function.
The Input (stdin) :
1.23 0.26
3.10, 0.05
4.65, 0.30
I want to store the input into an array list without commas in separate lines like:
[[1.23 0.26]
[3.10 0.05]
[4.65 0.30]]
Is that possible to do?
Earlier I used to read this input as a csv_reader using numpy library, but without using numpy (no csv reader but instead use stdin) how can I achieve the same format?
The Input (stdin) :
1.23 0.26
3.10, 0.05
4.65, 0.30
I want to store the input into an array list without commas in separate lines like:
[[1.23 0.26]
[3.10 0.05]
[4.65 0.30]]
Is that possible to do?
Earlier I used to read this input as a csv_reader using numpy library, but without using numpy (no csv reader but instead use stdin) how can I achieve the same format?