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

Pages: 1-

Python error

Name: Anonymous 2010-05-06 5:20

def calendar(days):
    "Prints each day of the week."
    return days()
if __name__ == "__main__":
        daysofweek = ('Sunday', 'Monday', 'Tuesday', \
                      'Wednesday', 'Thursday', 'Friday', \
                      'Saturday')
        print calendar(daysofweek)


-----------------------------------------------

TypeError: 'tuple' object is not callable

Name: Anonymous 2010-05-06 5:35

The error is that you are fundamentally incapable of reading

Name: Anonymous 2010-05-06 5:51

error: code tag not found

Name: Anonymous 2010-05-06 7:38

yeah but who doesn't indent their code?

Name: Anonymous 2010-05-06 7:56

>>2
I'm not sure that is the problem. OP-chan might be also fundamentally incapable of rational thought. You might argue that "reading" already includes that, but please consider the following deconstruction: solving a problem consists of 1. gathering information, 2. reasoning, 3. outputting the result. I think it's interesting because it shows us yet another, unobvious point of failure: in fact OP might be fundamentally incapable of writing. As in: he saw the error in, say, coworker's code and wanted to vent his rage at said coworkers stupidity, but couldn't do anything except paste the code and the exception and stare at the monitor blankly for five or maybe ten minutes before finally submitting the post in desperation.

Name: Anonymous 2010-05-06 8:17

if __name__ == "__main__":
ENTERPRISE-LEVEL FIOC

Name: Anonymous 2010-05-06 9:10

Artists trying to /prog/ram

s/s()/s

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