Strange (for a newbie) problem
wweston at att.net
Sat Feb 21 23:39:29 CET 2004
Yes, more info is needed. One thing that could move
your error to a latter line and confuse you is that you
can "multiply" strings.
>>> print 6*x
>>> print type(x)
Angelo Secchi wrote:
> I'm experiencing the following problem.
> I have a python script analyses.py where a certain point I have to
> define a variable called 'code' like:
> The program works fine but if I change that line in 'code=sys.argv'
> using the sys module in order to give to the program that code as a
> parameter (i.e. I then run this script as "python analyses.py 151" from
> the shell) then the program returns an error complaining that a certain
> variable different from code is not defined.
> What is my mistake?
More information about the Python-list