5/06/2008

Today I've start reading the "How to Think Like a Computer Scientist" and I've noted this conversation:

"1.2 What is a program?
A program is a sequence of instructions that specifies how to perform a computation.
The computation might be something mathematical, such as solving
a system of equations or finding the roots of a polynomial, but it can also be a
symbolic computation, such as searching and replacing text in a document or
(strangely enough) compiling a program."


Chapter 3:

As you can see earlier, I've tried to start typing in shell and there were some errors. Today I've start the perl program and !! OH !! I've found : chmod +x for file !!


(jj)examplesPY% chmod +x test1.py
(jj)examplesPY% ./test1.py
./test1.py: line 1: syntax error near unexpected token `('
./test1.py: line 1: `def fib(n):'
(jj)examplesPY% ./test1.py
./test1.py: line 1: syntax error near unexpected token `('
./test1.py: line 1: `def fib(n):'
(jj)examplesPY%

-- not successful!!


Немає коментарів: