var scores: [Int] = [88, 92, 76, 100] var names = ["Ravi", "Meera", "John"] // type inferred as [String] var empty: [Double] = [] print(scores) print(names) print(empty.isEmpty)
Click Run to execute this code.