So yea im making a partical physics simulation and im using pygame, so im using lists to store the x and y variables for each partical, also im using list to store the actual particals themselfs. so i want to create an create fuction that can create many particals at one, so what i was doing was adding a new number to the x and y list and then geting the index of the length and use that as the index to get that number. here is the code...
import pygame
import math
import random
pygame.display.init()
screen = pygame.display.set_mode((500, 500))
currentXindex = 0
currentYindex = 0
X = [400, 300]
Y = [300, 400]
VelX = [0]
VelY = [0]
while True:
screen.fill((0,0,0))
Particals = []
pygame.display.flip()
for x in range(0, 10):
X.append(random.randint(300, 500))
Y.append(random.randint(300, 500))
Particals.append(pygame.draw.circle(screen, (255, 255, 255), (X[len(X)], Y[len(Y)]), 50)
so after that i get an error saying "unexpected EOF while parsing" can anyone help me with this...