Re:Python Print() and Beyond
by fireattack on Sunday December 20, 2020 @10:19PM
(#25491837)
> By default, all the values you pass to it are separated by empty strings
I think it's space, not empty string?
------
Another error:
If we execute that, we notice the text is no more separated by a new line. Let's try that again! But this time, we want it to end by y and move to a new line.
print("Hello James", end="y\n")
print("How are you doing", end="\n")
We get the following output
Hello Jamesy
How are you doingy
Yay it worked !
But your second line in code uses `end="\n"`. It won't print "doingy".
I think it's space, not empty string?
------
Another error:
But your second line in code uses `end="\n"`. It won't print "doingy".