var arr: [Any] = [3.14, "swift", 123.874, 98.999, "java", "c"]
arr.append(contentsOf: ["c++", "python", 6437.01])
print(arr)
for element in arr {
print(element)
}
/*
run:
[3.14, "swift", 123.874, 98.999, "java", "c", "c++", "python", 6437.01]
3.14
swift
123.874
98.999
java
c
c++
python
6437.01
*/