thanks a lot for the clarification Alan and all.
--
Regards,
bibs M.
Host/Kernel/OS "cc02695" running Linux 2.6.31-5.slh.4-sidux-686
[sidux 2009-02 Αιθήρ - kde-full - (200907141427) ]
www.sidux.com
Alan Gauld wrote:
"biboy mendz" wrote
chapter 8: hangman.py
expression is: print(l
"Hugo Arts" wrote
print letter, ' ',
You don't need the space, Python automatically inserts
a space instead of the newline when you use the comma.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/l2p/
___
Tutor maill
"biboy mendz" 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.
On Fri, Nov 13, 2009 at 2:17 PM, biboy mendz wrote:
> http://inventwithpython.com
>
> 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 ne
http://inventwithpython.com
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 synta