Can post a code but afraid of plagiarism
indar kumar
indarkumar59 at gmail.com
Thu Jan 23 16:56:21 EST 2014
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
More information about the Python-list
mailing list