print string+ in for loop
Alex Martelli
aleax at aleax.it
Mon May 13 03:41:29 EDT 2002
Delaney, Timothy wrote:
...
>> for c in word:
>> print c+
>
> It will never go in, but what would you expect the above to do? Give
> examples of input and output. I have absolutely no idea what you want to
> do. If you give examples of input and output, we can tell you the Pythonic
> Way To Do It.
I bet the OP just wants Yet Another Way to express:
for c in word:
sys.stdout.write(c)
Alex
More information about the Python-list
mailing list