IndentationError: unindent does not match any outer indentation level

Hello everyone,

I have received an error that I dont know how to address it:
IndentationError: unindent does not match any outer indentation level

I want to have a counter balance for two keys.

I have two options one says (away from each other) and the other says (toward each other) which refers to point that FirstPartWords and SecPartsWords move away from each other or toward each other.

I have an excel file for counterbalance.
I have created a loop for counter balance too.

This is the code that I have used:

Does anyone know how to address this error? Appreciate it.

Best,
Hamid

Can you see that line 6 of your code doesn’t have the same indent as line 7?

Great. Now it works and there is no error. Appreciate it.

However, still it doesnt change the options of answers. See the screen please.

I want the "f = toward each other " AND “j = away from each other” to changed in different trials, but they are fixed now. Thats why I want to have counterbalance.
I appreciate it if you share your experince with me.

Hamid