Boston_6_18_07 = [36, 9, 6, 0, 0, 3]
out = lambda x: (x[0] - x[1] +0.00)/(x[0] +x[2] + 0.0)
#####################
>>> class Team:
def __init__(self, pab, ph, pbb, p2b, p3b,phr):
self.AB = pab
self.H = ph
self.BB = pbb
self.twoB = p2b
self.threeB = p3b
self.HR = phr
>>> x = Team(10,1,2,1,1,1)
>>> x.AB
10
>>> x.H
1
>>> x.BB
2
>>> x.twoB
1
>>> x.threeB
1
>>> x.HR
1
Tuesday, June 19, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment