Here is my code
for i in range (8): ch = "{}{}" ch = ch.format(widget.name[0] , chr(ord(widget.name[1]) + i +1)) if (space.name == ch):