Question 1/6: Which of these lines make an array, dictionary, set, or tuple?
Hint: Make sure the type annotations match what's placed inside. Click to show.
var fibonacci = (1, 1, 2, 3, 5, 8)
This creates a tuple.
var repeatCount = [String: Int]
This is invalid Swift – it needs parentheses after
Oops – that's not correct.
Link copied to your pasteboard.