0
How to read a input of numbers from a file colum wise
for Eg if I/p is 2 1 3 4 6 the o/p must be 2 1 4
2 Antworten
0
split file into list of lines, then read line[0] in each otem/line. that's in general
but notice it also depends alot on user requirements.
0
import sys
file = open("path_you_file")
while file:
line = file.readline()
print(line[0])
# if it is good, like my code)))