Evening,
This is not necessarily pythonic, I know that going into it. However, I can not get this to trigger properly at all.
What I'm trying to do is match two letters to items in "registers" which is getting done correctly, however I'm then trying to see if there is a white space after those two letters. The white space is what's not getting picked up correctly. I'm sure that I'm just botching up the sytax. Any help would be greatly appreciated.
registers = ['R0','R1','R2','R3','R4','R5','R6','R7']
whiteSpace = ['\t', ' ']
if (item[idx +2] + item[idx +3]) in registers and (item[idx +4] in whiteSpace):