Swift Arrays
An array stores ordered values of one type. Declare it with var if you want to change it, since let makes it a constant. append adds an element at the end and count returns the length.
Swift
var scores = [82, 91, 76]
scores.append(95)
let total = scores.reduce(0, +)
print(scores.count, total)