Skip to content

Instantly share code, notes, and snippets.

@Drvanon
Created May 16, 2012 08:38
Show Gist options
  • Save Drvanon/2708750 to your computer and use it in GitHub Desktop.
Save Drvanon/2708750 to your computer and use it in GitHub Desktop.
# The real part
Map = [
[None, None, None],
[None, None, None],
[None, None, None],
]
coordinates = [
Map[0][0],
Map[0][1],
Map[0][2],
Map[1][0],
Map[1][1],
Map[1][2],
Map[2][0],
Map[2][1],
Map[2][2],
]
def updateMap(hk, upgrades):
for i in upgrades:
if upgrades[i].ID+1:
coordinates[upgrades[i].ID] = 2
print Map[i]
# The code
Bar = 10
list = [Bar]
dict = {'Foo': list[0]}
dict['Foo'] = 11
print list[0]
# The output
10
# The desired output
11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment