The program reads in a line like "Joe:100" and it splits it in the middle, it's then supposed to place the name into one list and the number it another.
Here is what I have:
def splitData(num,person):
counter = 0
with open ("Data.txt") as file_object:
for line in file_object:
line = file_object.readline()
words = line.split(":")
num.append(words[1])
person.append(words[0])
I feel like I'm close to getting it right but then again I could be miles off.