+ 1
Print("fibonacci" , end = " " )
Here, finishing line of this code is written (,end = " ")... what is the meaning of this code?
2 Answers
+ 4
By default end="\n" that is why you get a new line after every print.
Example,
print("hello")
print("world")
Output:
hello
world
Now, end = " " means a space after the print is done.
Example,
print("hello", end= " ")
print("world")
Output:
hello world
+ 2
Thank you