0
how to remove space and print irst two lines from a text file in python?
Hello, I am trying to remove space from text file and print first two lines from a text file. Here is the code I worked on, https://code.sololearn.com/cyMSHqMSs6nh/#py from this, I am getting the output something like " 0 1 2 0 1 2" But I am not getting the actual first two lines. Please help me to solve this. Thank you
1 Resposta
+ 2
I don't really understand how the text in the input file should be and what exact output you expect ,could you share an example?