I'm having a problem sizing down this block of code:
if POS == 1:
POS1 = "->"
else:
POS1 = " "
if POS == 2:
POS2 = "->"
else:
POS2 = " "
if POS == 3:
POS3 = "->"
else:
POS3 = " "
if POS == 4:
POS4 = "->"
else:
POS4 = " "
if POS == 5:
POS5 = "->"
else:
POS5 = " "
if POS == 6:
POS6 = "->"
else:
POS6 = " "
if POS == 7:
POS7 = "->"
else:
POS7 = " "
if POS == 8:
POS8 = "->"
else:
POS8 = " "
if POS == 9:
POS9 = "->"
else:
POS9 = " "
if POS == 1:
POS1 = "->"
else:
POS1 = " "
The reason why I can't figure it out is mainly because the sequence I would use a for loop with is in a variable. Any suggestions would be appreciated.