Complete the code to print a greeting in Swift.
print([1])
In Swift, strings must be enclosed in double quotes when printed.
Complete the code to declare a variable named greeting with the value "Hello".
var greeting = [1]In Swift, string values must be enclosed in double quotes when assigned to variables.
Fix the error in the code to correctly declare a constant named pi with value 3.14.
let pi = [1]Numbers in Swift use a dot for decimals, not a comma.
Fill both blanks to create a function named greet that prints a message.
func [1]() { print([2]) }
The function name is greet and it prints the string "Welcome to Swift!".
Fill all three blanks to create a dictionary with keys and values.
let [1] = [[2]: [3]]
This creates a dictionary named person with key "name" and value "Alice".
