Swift Code 4 only please
var arr: [String] = ["a","b","s","c"]
var dictionary : [String : Int] = ["a":1, "b":2, "c":3,
"d":4]
for i in arr
if(dict[i] = even)
print ("even number"
if else (dict[i] =odd)
print("odd number")
else
print("Does not exist")
Is there a way to compare the string array with the dictionary
keys. Use the array to see if string exists as a key in the
dictionary. Depending on the value of the key, it will print a
specific...