[Tutor] beginner question

Gregor Lingl glingl@aon.at
Sun Dec 29 09:27:01 2002


djuro schrieb:

>Hello!
>
>One easy question please.
>
>How to fix this piece of code to print list elements horizontal on screen?
>
>###
>list = [1,2,3,4,5]
>
>for i in list:
>    print i
>
>###
>
Add a comma as follows:

   for i in list:
       print i,

Gregor

>
>Regards
>
>Djuro
>
>
>_______________________________________________
>Tutor maillist  -  Tutor@python.org
>http://mail.python.org/mailman/listinfo/tutor
>
>
>  
>