First time I've asked for help so please bear with me...
Supposed to open a txt file. Assuming the txt file is formated properly. The file is a what I am assuming a list of names and ages. I created my own file...
kick me 989
Santa Clause 0943
Bart Simpson 100
As Is 2856
Supposed to sort by the ages.
I will put the code i have in already.
infile = open('people.txt', 'r')
names = infile.readlines()
temp = names[0:1]
for item in temp:
Was trying to test this out but I kept messing up the indexing or listing.
Someone mentioned import string so Im going to try that.
I don't know how these boards work so Im crossing my fingers.
Also can someone show me how to encase my code ;)