Anyone know the solution

ngangsia akumbo ngangsia at gmail.com
Tue Oct 28 17:07:17 CET 2014


This is a sample code on how to read data from a file

files1 {}

result = open("file1.txt")
for line in result:
    file1 = line>split()
files1.append(file1)
result.close()
file1.sort()
file1.reverse()

print('THE FILE INFO')

print(file1(0)
print(file1(1)
        



More information about the Python-list mailing list