import re
from collections import OrderedDict
file = open(input("Inp ut-file name : ") , "r")
fi = file.readlines( )## convert to list of lines
key=[]
val=[]
keyapp=False
for line in fi:
if re.match(r'^[^\n(E|P):]*:\s[EXINTF_DATA\d]*\d',line):
#print(line)
tempkey = line.strip()##t o remove the newlines when printing
s = tempkey...