User Profile

Collapse

Profile Sidebar

Collapse
jonathanemil
jonathanemil
Last Activity: Jul 26 '07, 02:30 AM
Joined: Jul 16 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jonathanemil
    replied to "term not defined" or "invalid syntax"
    The thing is, I'm at a point very early in the game, and some of the changes you made we haven't learned about yet in class. Also, we have very strict assignment specs, what you see in my code is the way my instructor INSISTS on things being done. So while my instructor encouraged us to ask around when we get stuck, I wouldn't feel right about copying portions of your code without really understanding them, and probably wouldn't have gotten credit...
    See more | Go to post

    Leave a comment:


  • jonathanemil
    replied to "term not defined" or "invalid syntax"
    bartonc,

    If I could just ask you one more question, you'll be free of me (at least for the rest of this evening). Thank you for your help so far. I have finished my program, however, I am still having a hard time getting my "sum" into each of the different functions in order to compare it with other column/row/diagonal sums. After I calculated the sum in a definition, I figured if I defined "sum" as that definition...
    See more | Go to post
    Last edited by bartonc; Jul 17 '07, 03:49 AM. Reason: Added [CODE=python][/CODE] tags.

    Leave a comment:


  • jonathanemil
    replied to "term not defined" or "invalid syntax"
    Thanks for the reply bartonc. I now get this error:

    Code:
    Traceback (most recent call last):
      File "/Users/jonathan/Documents/pythonboard2.py", line 67, in <module>
        main()
      File "/Users/jonathan/Documents/pythonboard2.py", line 59, in main
        a2DList = construct2dimlist(infile, dimensions) # dimensions is presumably a tuple
      File "/Users/jonathan/Documents/pythonboard2.py",
    ...
    See more | Go to post

    Leave a comment:


  • jonathanemil
    started a topic "term not defined" or "invalid syntax"

    "term not defined" or "invalid syntax"

    Hello,

    I am a 1st semester Computer Science student in a Python class. Our current assignment calls for us to read a list from a file, create a 2-dimensional list from the file, and check to see whether or not 2-dim list constitutes a "magic square" (i.e. all the rows, columns and diagonals equal each other when added). We are to create several definitions, and I have had no problem reading from the file, creating the list,...
    See more | Go to post
    Last edited by bartonc; Jul 17 '07, 12:01 AM. Reason: Added [CODE=python][/CODE] tags.
No activity results to display
Show More
Working...