@acwoss/

SingleIncredibleAddress

Python

No description

fork
loading
Files
  • main.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.6109973594679701","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"bGlzdGEgPSBbWydqdWxpYW4nLCAnMCcsICc0JywgJzQnXSwgWydhbmEnLCAnMTAnLCAnNCddXQoKZGVmIHNlYXJjaChsaXN0YSwgdmFsb3IpOgogICAgZm9yIGksIHN1Ymxpc3RhIGluIGVudW1lcmF0ZShsaXN0YSk6CiAgICAgICAgeWllbGQgZnJvbSAoKGksIGopIGZvciBqLCBpdGVtIGluIGVudW1lcmF0ZShzdWJsaXN0YSkgaWYgaXRlbSA9PSB2YWxvcikKICAgICAgICAgICAgCnByaW50KCBsaXN0KHNlYXJjaChsaXN0YSwgJzQnKSkgKQ=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
lista = [['julian', '0', '4', '4'], ['ana', '10', '4']]

def search(lista, valor):
    for i, sublista in enumerate(lista):
        yield from ((i, j) for j, item in enumerate(sublista) if item == valor)
            
print( list(search(lista, '4')) )