print string+ in for loop

Delaney, Timothy tdelaney at avaya.com
Sun May 12 20:47:05 EDT 2002


> From: Kevin Kohiruimaki [mailto:kevin at no.mail.com.avaya.com]
> 
> But actually, that is not the point, I know I can do it with 
> other ways. I
> just feel a little weird why you can do
> 
> for c in word:
>   print c,
> 
> but not
> 
> 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.

Tim Delaney





More information about the Python-list mailing list