Skip to content

Instantly share code, notes, and snippets.

@elpargo
Last active August 29, 2015 14:04
Show Gist options
  • Save elpargo/e2a8803bf61605662244 to your computer and use it in GitHub Desktop.
Save elpargo/e2a8803bf61605662244 to your computer and use it in GitHub Desktop.
esto es lo que propones ?
for v in lista:
if lista[v] == idb:
lista[v] = ida
[a==5 and "change" or a for a in range(10)]
[0, 1, 2, 3, 4, 'change', 6, 7, 8, 9]
@wilsoncampusano
Copy link

Gracias.. lo deje asi : [self.add(v,ida) for v in self.lista if self.lista[v]==ida]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment