Quiz · Dictionaries and sets · lesson 6 of 6
Quiz — a set
Question 1 of 2
What does the program print?
let pack = [4, 7, 4, 9, 7]
var album = Set(pack)
album.insert(9)
album.insert(12)
print(pack.count, album.count)What does the program print?
let pack = [4, 7, 4, 9, 7]
var album = Set(pack)
album.insert(9)
album.insert(12)
print(pack.count, album.count)