hi,

a_dict = {'name':'apple', 'color':'red', 'texture':'smooth',
'shape':'sphere'}

is there any difference between ..

for key in a_dict:

from

for key in a_dict.keys():


which is more preferred? any difference in performance?

THanks
james

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to