import pygame, sys, time, math from pygame.locals import * position = -1 cols = [] colnumbers = [] for i in range(7): cols.append([0, 0, 0, 0, 0, 0]) colnumbers.append(0) while position != 0: position = -1 while position > 7 or position < 0: position = int(input("what column\n")) colnumbers.append print()