How to get the number of pairs in dictionary with Swift

1 Answer

0 votes
let dic : [String: Int] = ["Swift": 4, "Python": 7, "Java": 6, "PHP": 5]
  
print(dic.count)

  
  
/*
run:
  
4
  
*/

 



answered Sep 20, 2020 by avibootz
...