The print function takes unlimited amount of inputs & Shows them on screen. So the output of print("Hello", "World")
will be Hello World
.
By default inputs are separated by space, But we can change that by specifying the separator at the end of the print
function like so: print("Hello", "World", sep = "$"
, And it will result in Hello$World
By default when print
function finishes it outputs a new line, We can change that by specifying the ending character like so: print("Hello", "World", end = "$")
, And it will result in Hello World$
Find the output:
print("Hello World", sep = "$")