So, here is my code:
print "at which cell do you want to place your character? (x,y)"
coordinates = raw_input("> ")
while coordinates != "int,int":
print "Please enter an x and y value separated by a comma."
coordinates = raw_input("> ")
What I currently have obviously does not work, just typed it out to show what I want to do. Basically, if the user does not enter a number followed by a comma followed by another number I want to reprompt them until they do.
Edit: Fixed it. Here's what I ended up with.
coordinates = raw_input("> ")
while True:
try:
x, y = coordinates.strip('()').split(',')
except ValueError:
print "Please enter an x and y value separated by a comma."
coordinates = raw_input("> ")
else:
break