Print("fibonacci" , end = " " ) | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

Print("fibonacci" , end = " " )

Here, finishing line of this code is written (,end = " ")... what is the meaning of this code?

30th Jun 2021, 2:59 PM
Md Nazim Uddin Sagor
Md Nazim Uddin Sagor - avatar
2 Antworten
+ 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
30th Jun 2021, 3:17 PM
Rohit
+ 2
Thank you
30th Jun 2021, 3:39 PM
Md Nazim Uddin Sagor
Md Nazim Uddin Sagor - avatar