Lists inside dictionary and how to look for particular value

mick verdu mickverdu at gmail.com
Sun Jan 26 18:54:39 EST 2014


ThanK you. It solved my problem.
Can someone tell me how can i print particular value inside list of key.

I know how to print J['PC2'][1] means will print IP. but I want the user to input some element and I will print element just before that element.

e.g. if user inputs 192.168.0.2, program will print 02:02:02:02:02:02.
If user inputs 192.168.0.1 I will print 01:01:01:01:01:01.




More information about the Python-list mailing list