I have been playing around a bit and I want to know if you can update a global varaible...
rowA = []
def printSeat():
global rowA
print "A",
rowA = ['*', '*', '*', '*', '*', '*', '*', '*']
print rowA
print "B",
rowB = ['*', '*', '*', '*', '*', '*', '*', '*']
print rowB
print "C",
rowC = ['*', '*', '*', '*', '*', '*', '*', '*']
print rowC
print "D",
rowD = ['*', '*', '*', '*', '*', '*', '*', '*']
print rowD
print "E",
rowE = ['*', '*', '*', '*', '*', '*', '*', '*']
print rowE
print "F",
rowF = ['*', '*', '*', '*', '*', '*', '*', '*']
print rowF
printSeat()
print
print
print
input1 = raw_input('$')
if input1[:1] == 'A' or 'a':
if input1[3:5] == '-o':
seat = int(input1[1:2])
print rowA
print seat
rowA[0:int(seat)] = ['X']
print rowA
printSeat()
I basicly want 'rowA' the same as 'rowA' inside the function, so when I run "printSeat()" i wnat it to show row A changed
If it is unclear what i am tring to say I will try to explain in another way