Right now I am trying to import the data and extract the portion i want for my first loop
But when i run the program my 2nd array only seems to have the last entry. here is my code, what am i doing wrong
import fileinput
List2 = list()
List3 = list()
areaCode = input('enter Area code ')
for line in fileinput.input(['C:\Users\joeh\Desktop\PhoneLog.csv']):
myList2.append(line.split('\n')[0])
for item in List2:
List3.append(line.split(',')[0])
# List3.append(line.split(",")[1])
print(List2[0])
print(List3[9999])
#print(List3[12])

New Topic/Question
Reply
MultiQuote










|