+ 1
What is use in "end" keyword
it is print to horizontal lines
1 Respuesta
+ 5
"end" keyword in the print() function defines the whitespace used between multiple strings used in print(). The default value of "end" is "\n".
For example:
print("Hello", "world!", end=" ")
print("This", "is", "python.", end=" ")
will print
"Hello world! This is python."