|
|
|
|
|
by fireattack
2010 days ago
|
|
> 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". |
|