[Tutor] printing a key not a value
bodsda at googlemail.com
bodsda at googlemail.com
Tue Oct 25 15:54:52 CEST 2011
Sure,
mydict = {'a':1, 'b',2}
for key in mydict:
print key
Hope this helps,
Bodsda
Sent from my BlackBerry® wireless device
-----Original Message-----
From: ADRIAN KELLY <kellyadrian at hotmail.com>
Sender: tutor-bounces+bodsda=googlemail.com at python.org
Date: Tue, 25 Oct 2011 13:45:50
To: <tutor at python.org>
Subject: [Tutor] printing a key not a value
_______________________________________________
Tutor maillist - Tutor at python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
More information about the Tutor
mailing list