Saturday, 28 September 2013

What is the role of "*" inside of a Python print statement?

What is the role of "*" inside of a Python print statement?

What is the role of "*" inside of a print statement in Python?
print ("Hello World!\n");
print (*"Hello World!\n");
Output of the first print statement is
Hello World!
Output of the second statement is
H e l l o W o r l d !

No comments:

Post a Comment