Category : search

with some help I’ve been able to return the key of dict using a nested value using below: My_dict ={"1": {"name": "John","level": "random int", "status": "whatever"},"2": {"name": "Jane","level": "random int", "status": "whatever"},"3": {"name": "Jack","level": "random int", "status": "whatever"},"4": {"name": "Sue","level": "random int", "status": "whatever"}, for k in My_dict: [k for k, v in My_dict if ..

Read more

How can you make a PySimpleGui listbox with search functionality?⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ Source: Python..

Read more

i’m a begginer progammer and i really dont understand how to do a dijkstra algortihm. I need a function that receive in arguments like def(connection, startPoint, endPoint): and return the best path Example: (‘a’, ‘b’) is a connection (‘a’, ‘c’) is a connection (‘b’, ‘c’) is a connection and return for example (‘a’, ‘c’) as ..

Read more