Thanks for posting the question, we are glad to help you. You need to create four text files and write the data in the table, once done, you need to update the file paths in the code and then you are all set to run the program
Here is the code and the output, refer the screenshot for the output and the code indenation
____________________________________________________________________________________________________
vb_list=[]
with open('F:\\BrandVB.txt','r') as vbfile:
vb_list = [line.strip() for line in vbfile.readlines()]
brandA_list=[]
with open('F:\\BrandA.txt','r') as vbfile:
brandA_list = [line.strip() for line in vbfile.readlines()]
brandX_list=[]
with open('F:\\BrandX.txt','r') as vbfile:
brandX_list = [line.strip() for line in vbfile.readlines()]
brandC_list=[]
with open('F:\\BrandC.txt','r') as vbfile:
brandC_list = [line.strip() for line in vbfile.readlines()]
zipped_list=list(zip(vb_list,brandA_list,brandX_list,brandC_list))
print('Type[1] for Brand A')
print('Type[2] for Brand C')
print('Type[3] for Brand X')
brand=int(input())
part_number=input('Enter part number: ')
found=False
for row in zipped_list:
if row[brand]==part_number:
print('VB Auto number:',row[0])
found=True
break
if not found:
print('No entry found for brand and part number')
________________________________________________________________________________________________
image screenshot

thank you !!
PYTHON VB Auto sells its own brand of spark plugs. To cross-reference to major brands, it...