Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Python 3.2

Name: Anonymous 2011-10-24 22:32

  File "C:/Python32/BUTTFUCK", line 43, in writebars
    rects[i] = Rectangle(Point(i, 0), Point(i, counts(i)))
TypeError: 'GraphWin' object is not callable

I keep getting this error. its Python 3.2 and trying to draw a bar graph with variable the counts, a list of numbers from a file. Where counts is the height of the bar. Any help?

Name: Anonymous 2011-10-24 23:23

/me points, laughs

Name: Anonymous 2011-10-25 2:33

i thought python was supposed to be easy

Name: Anonymous 2011-10-25 2:38

>>1
imperative AIDS. Use list comprehension.

Don't change these.
Name: Email:
Entire Thread Thread List