[Tutor] special translations

Rob Andrews robnospam@jam.rr.com
Sun, 20 May 2001 20:12:09 -0500


Can you provide a bit more detail on what you're trying to do? I'm not
sure I get it yet.

Rob

> Katharine Stoner wrote:
> 
> Hi to all Python people,
> 
> I wanted to know if anyone knows how to tell python to take a space
> you left and turn it into a character.
> 
> ex:
> if ltter == 'space':
>         print '~'
> When Ieave a space in the above space part in the code it gives me an
> error.  How can you tell python that the space is okay and for it to
> print the symbol.
> 
> -Cameron

-- 

You should have listened when your mother warned you about
Useless Python!
http://www.lowerstandard.com/python/pythonsource.html