Using for loop iteration with If statement
I have a list of multiple items. We need to create a loop that finds an item from the list and prints it out. If the item was not found prints out only once that it hasn’t been found.
for x in range(len(regs)):
rex = regs[x]
print (dev[x],'Regex matched')
currently, prints out the wrong format “DeviceX Regex matched”