basic_tools⚓︎
Collection of simple, yet useful Python tools
            index2d(list2d, value)
⚓︎
    Search in a 2D list for pattern or value and return is (i, j) index. If the pattern/value is not found, (None, None) is returned
Examples:
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                list2d
             | 
            
                  list of lists
             | 
            
               2D list.  | 
            required | 
                value
             | 
            
                  object
             | 
            
               Pattern or value to search for.  | 
            required | 
Returns:
| Name | Type | Description | 
|---|---|---|
ind |             
                  tuple
             | 
            
               Indices (i, j) of the value.  |