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 <[email protected]>
Sender: [email protected]
Date: Tue, 25 Oct 2011 13:45:50
To: <[email protected]>
Subject: [Tutor] printing a key not a value
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor