def main(): print "in main" test = "whee" check = "e" answer = helper(test, check) print "the answer is", answer def helper(word, letter): print "in helper" print "word:", word print "letter:", letter x = 0 for ch in word: if ch == letter: x = x+1 # draw stack here return x main()
p = Point(100,200) type of p? c = Circle(p, 5) type of c? x = c.getRadius() type of x? c2 = Circle(p, 20) type of c2? L = [c, c2] type of L? m = L type of m? y = L.getCenter().getY() type of y? answer = helper(test, check) type of test? type of answer (from above code)?