Complete the code to check if a is equal to b.
let isEqual = a [1] bThe operator == checks if two values are equal in Swift.
Complete the code to check if x is greater than y.
if x [1] y { print("x is greater") }
The operator > checks if the left value is greater than the right value.
Fix the error in the code to check if number is not equal to 10.
if number [1] 10 { print("Number is not 10") }
The operator != checks if two values are not equal.
Fill both blanks to create a dictionary of words and their lengths, including only words longer than 3 characters.
let lengths = [String: Int](uniqueKeysWithValues: words.map { word in (word, word[1]) }).filter { $0.value [2] 3 }.count gets the length of the word, and > filters words longer than 3 characters.
Fill all three blanks to create a dictionary with uppercase keys and values greater than 0.
let result = Dictionary(uniqueKeysWithValues: data.map { ([1], [2]) in ([3], [2]) }).filter { $0.value > 0 }key and value are tuple names, and key.uppercased() converts the key to uppercase.
