I get this error in my python programme:
Line = (str(Line7) + (" ") + str(Line2))
UnboundLocalError: local variable 'Line7' referenced before assignment
For this part of the code:
Line7 = ("Y Y Y B B B G G G")
Line2 = ("O O O")
def Rotation_Top_Right():
Line = (str(Line7) + (" ") + str(Line2))
print(Line)
Line_List = []
for i in range(12):
i -= 3
Line_List.append(Line.split(" ")[i])
for i in range(9):
Line7 = Line_List[i]
for i in range(3):
i -= 3
Line2 = Line_List[i]
Rotation_Top_Right()
Tar in advance.