All pastes #2054255 Raw Edit

Example

public python v1 · immutable
#2054255 ·published 2011-05-05 15:40 UTC
rendered paste body
# First I would save the position where my own dictionary is storedmyPosition = Nonedef saveposition():   global myPosition   playeri = 0   for playerI in range(len(players)):      if players[playerI][0] == me:         myPosition = playerIdef setRank():   players[myPosition][1]['rank'] = 10# And then for example I could do a comparisondef compareRanks():   for p in players:      if player[p][1]['rank'] < player[myPosition][1]['rank']:         notify('{} wins!'.format(me))