Learning Python: Code critique please

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • macoovacany

    Learning Python: Code critique please

    Hello all,
    I'm trying to learn various programming languages (I did MATLAB at
    uni), and have decided to start with Python. The programming exercises
    are derived from Larry O'brien's <a href="http://www.knowing.net/
    PermaLink,guid, f3b9ba36-848e-43f8-9caa-232ec216192d.as px">15
    Programming Exercises </a>. First one is up with a couple of comments
    of my own.

    Any suggestions, corrections, things that I have done wrong, could do
    better, etc, please feel free to post a comment.

    Timbo
  • macoovacany

    #2
    Re: Learning Python: Code critique please


    Comment

    • Saul Spatz

      #3
      Re: Learning Python: Code critique please

      macoovacany wrote:When I tried to run it, I got all kinds of syntax errors because of
      non-ASCII characters; namely, you have fancy left and right single
      and double quotes. Once I replaced these with the ASCII equivalents,
      it worked fine. I suggest you use a plain ASCII text editor, like the
      one that comes with IDLE.

      HTH,
      Saul

      Comment

      • William McBrine

        #4
        Re: Learning Python: Code critique please

        On Sun, 22 Jun 2008 08:44:25 -0500, Saul Spatz wrote:
        macoovacany wrote:When I tried to run it, I got all kinds of syntax errors because of
        non-ASCII characters; namely, you have fancy left and right single and
        double quotes.
        That's probably WordPress' doing.

        --
        09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 -- pass it on

        Comment

        Working...