Example done in Wed. Lab P4 Design
## if "http://" in line NO!! def main(): ## lst = ['A', "green", 'B', "blue", "C", "yellow", "D", "red"] ## for i in range(0, len(lst), 2): ## print (lst[i], lst[i+1]) infile = open("file.txt","r") for i in infile: j = infile.readline() print (i.strip(), j.strip()) infile.close() main()