Dec-22-2017, 07:34 PM
Hi there.
I have questinon. I need to search in my multidimensional list by more than one key. There is list:
I know how order items , thats ok. But i dont know, how to search first by city and then by type and order it.
Can you everybody help me?
I have questinon. I need to search in my multidimensional list by more than one key. There is list:
lis= [["id","type","city","price","rooms"],[0,"Flat","Prague",13000,5],[1,"Flat","Prague",1000,4],[2,"House","Prague",13020,10]]For example, user enter to console this: search [key] [value] [key2] [value2][where/order]. -> search city Prague AND type Flat ORDER BY price. This can show list by id : 1,0.
I know how order items , thats ok. But i dont know, how to search first by city and then by type and order it.
Can you everybody help me?