running a python script in drpython

john minisumo at
Sun Mar 13 22:44:00 CET 2005

Haveing problems writeing a program then running it in python 2.3.5 
interpreter.  Called the program used chmod to make it 
executable in linux
> #! /usr/bin/python
> print 2** 8
> print 'the bright side ' + 'of life'

 >>> python
   File "<stdin>", line 1
SyntaxError: invalid syntax
how do you run a script you create in the python interpreter?


More information about the Python-list mailing list