On Sun, Oct 23, 2011 at 3:03 AM, apometron
<apometron.listas.ci...@gmail.com> wrote:
> import os
> nome = sys.argv[1]

You did not `import sys`, so you'll get a NameError there.

> final = nome
> for i in nome:
>    print i
>    if nome[i] = "_":
>        final[i] = " "

Strings aren't mutable in Python; you can't assign to slices of them.
So you'll get a TypeError on the previous line.

Cheers,
Chris
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to