monjissvel at googlemail.com
Fri Aug 1 13:13:09 CEST 2008
if you remove the comma after the print i
for i in range(10) :
print "Goodbye World!"
your problem will be solved, the comma in a print statement means ' ' or
THREADING is a word that means something else than having two strings on the
2008/7/23 Sam Last Name <the_sam_smart at yahoo.com>
> Hey guys, I'm wanting to learn Python and eventually how to program with
> it. I'm 16 and very eager to learn. I already have a question.
> Heres my script:
> print "Hello World!"
> print "Here are the ten numbers from 0 to 9"
> for i in range(10) :
> print i,
> print "Goodbye World!"
> Result of my script :
> Hello World!
> Here are the ten numbers from 0 to 9
> 0 Goodbye World!
> 1 Goodbye World!
> 2 Goodbye World!
> 3 Goodbye World!
> 4 Goodbye World!
> 5 Goodbye World!
> 6 Goodbye World!
> 7 Goodbye World!
> 8 Goodbye World!
> 9 Goodbye World!
> I don't Understand. I have an idea it something like Goodbye world is
> threading together with the numbers? Feedback is Thanked :)
> Tutor maillist - Tutor at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tutor