print string+ in for loop

Kragen Sitaker kragen at pobox.com
Mon May 13 13:13:44 EDT 2002


Kevin Kohiruimaki <kevin at no.mail.com> writes:
> 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+

What would you expect this second program to mean, and why?




More information about the Python-list mailing list