So my problem is this: I've been trying to read a certain line from an output for some time now. It's about a router and its sysinfo which I get from a Python script. Now I want to be able to choose from the output lines with information which I get displayed. An output looks like this:
Behind the colons is the information. For example, if I only want to have the name, I want to have "nameofdevice" output when I enter "DEVICE" as the parameter.
I have already seen after extensive research that you can do something like this with so-called Dictionarys my question is now how I can implement this exactly. To change the output then. I am grateful for every pseudocode!
Edit: It is no duplicate i dont want to use lists i want to use dictionarys...