0

What is the best way to iterate dictionary keys in Python? should I use the keys() function or not? for example:

for k in dict:
      do somthing

Or

for k in dict.keys():
      do somthing
DoronS
  • 347
  • 1
  • 6
  • 12

0 Answers0