I'm making a little text-based game and I want a function that will create a variable with coordinates I can call on later to graph. Here's what I have:
def addObject(name, x, y):
global name = [x,y]
addObject(Home, 3,3)
print(Home)
I want to graph it later. This is what I'm having trouble with, though.