import Foundation
var dict = ["swift": 3, "c": 4, "python": 2]
print("Dictionary(Before Adding):", dict)
// Adding new key-value pairs
dict.updateValue(16, forKey: "Java")
dict.updateValue(5, forKey: "c++")
dict.updateValue(10, forKey: "php")
print("Dictionary(After Adding):", dict)
/*
run:
Dictionary(Before Adding): ["python": 2, "swift": 3, "c": 4]
Dictionary(After Adding): ["Java": 16, "python": 2, "c": 4, "c++": 5, "php": 10, "swift": 3]
*/