Skip to content

Instantly share code, notes, and snippets.

import UIKit
class ArrayView : UIView {
var data: Array<Int> = []
var views: Array<UIView> = []
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
}
init() {
#!/bin/python
# Topic 3: Functions
# Exercise 3-01
#
# 3-01-cointoss.py
#-------------------------------------------
# Instructions:
# You have been given a function called toss() that will print out "heads" or "tails"