iOS 12 Programming for Beginners
上QQ阅读APP看书,第一时间看更新

Iterating over dictionary keys

To iterate over a dictionary's keys using a for...in loop, add the following to Playgrounds:

for key in dictPizzas.keys { 
  print(key) 
}

Your code and output should now look like this: