On Saturday, January 18, 2014 3:21:42 PM UTC-7, indar kumar wrote: > Hi, > > > > I want to show a code for review but afraid of plagiarism issues. Kindly, > suggest how can I post it for review here without masking it visible for > public
Can I do the following to just get the value as string not the type list? searchfor = '192.168.0.2' z=[ii[0] for ii in hosts.values() if ii[1] == searchfor] >>> str1 = ''.join(z) >>> str1 -- https://mail.python.org/mailman/listinfo/python-list