thanks a lot for the clarification Alan and all.
--
Regards,
bibs M.
Host/Kernel/OS "cc000002695" running Linux 2.6.31-5.slh.4-sidux-686
[sidux 2009-02 Αιθήρ - kde-full - (200907141427) ]
www.sidux.com
Alan Gauld wrote:
"biboy mendz" <bibsmen...@gmail.com> wrote
chapter 8: hangman.py
expression is: print(letter, end=' ')
it explained:
end keyword argument in print() call makes the print() function put a
space
character at the end of the string instead of a newline.
however when run it gives error: SyntaxError: invalid syntax.
What gives? This is the first time i saw such expression inside print
function. Is this version-specific of python? I'm running version 2.5.4.
Your tutorial is using version 3.
In 2.6 simply put a comma after the string:
print letter,
to do the same thing.
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor