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 <kellyadr...@hotmail.com>
Sender: tutor-bounces+bodsda=googlemail....@python.org
Date: Tue, 25 Oct 2011 13:45:50 
To: <tutor@python.org>
Subject: [Tutor] printing a key not a value

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to