This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class ArrayView : UIView { | |
var data: Array<Int> = [] | |
var views: Array<UIView> = [] | |
required init?(coder aDecoder: NSCoder) { | |
super.init(coder: aDecoder) | |
} | |
init() { |