<p>You can try to use map(mydict.get, ('a', 'b', 'c')) and then make join</p>
<div class="gmail_quote">On May 7, 2012 2:33 PM, "Nikhil Verma" <<a href="mailto:varma.nikhil22@gmail.com">varma.nikhil22@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
HI All<br><br>I was clearing my concepts on dictionary and stuck in this problem.<br>I have a dictionary which i have formed by using zip function on two list so that one list (which i have hardcoded) becomes the keys and the other list<br>

becomes its values.<br><br>Now i want to know how can i get the values of keys at once if i pass the keys in a dictionary.<br><br>Let say I have a dictionary<br><br>mydict = {'a':'apple' , 'b':'boy' ,'c' : 'cat', 'd':'duck','e':'egg'}<br>

<br>Now if i do :-<br><br>mydict.get('a')<br>'apple'<br><br>What i want is some i pass keys in get and in return i should have all the values of those keys which i pass.<br><br>##################<br>mydict.get('a','b','c')    ###demo for what i want<br>

'apple','boy','cat'        ### Output i want<br>#################<br clear="all"><br>-- <br>Regards<br>Nikhil Verma<br><a href="tel:%2B91-958-273-3156" value="+919582733156" target="_blank">+91-958-273-3156</a><br>
<br>
<br>--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
<br></blockquote></div>