Post

Python Developer
Python Developer@Python_Dvยท
Comment below the output! ๐Ÿ˜ƒ๐Ÿ‘‡
Python Developer tweet media
English
40
11
147
12.8K
Kamal Gurjar
Kamal Gurjar@KamalGurjar8ยท
@Python_Dv Output: C) Hello-World โœ… Explanation: print("Hello", end="-") prints Hello and replaces the default newline with -. print("World") continues on the same line and prints World. Final output: Hello-World
English
0
0
20
714
Earnest Codes
Earnest Codes@Earnesto037ยท
@Python_Dv Answer:ย (c) Hello-World Theย print()ย function in Python normally adds a newline character at the end of its output.ย However, the firstย print()ย statement uses theย end="-"ย argument to replace the default newline with a hyphen (-).ย  The firstย print("Hello",
English
1
0
6
506
Zac Nielsen
Zac Nielsen@itszacnielsenยท
@Python_Dv C. Hello-World The end= function adds the hyphen to the end of the first word resulting in โ€œHello-Worldโ€
English
0
0
0
21
Uday Sharma
Uday Sharma@udaysharmatechยท
@Python_Dv C. end="-" replaces the newline, so both prints stay on the same line โ†’ Hello-World.
English
0
0
0
176
Tobe Duru
Tobe Duru@tobe_duruยท
@Python_Dv a versatile tool for the lazy coder
English
0
0
0
3
Gnossophiliac
Gnossophiliac@gnossophiliacยท
@Python_Dv I didn't know about the end="-" but it seems logical. Thanks for the clue
English
0
0
0
48
John Wu
John Wu@jhnwu1800ยท
@Python_Dv C will be the print out
English
0
0
0
112
ANVTech
ANVTech@ANV_Techยท
@Python_Dv "Quick Python tip: If you want to print multiple items on the same line without a newline, just use the end parameter! Example: print('Hello', end='-') followed by print('World') gives you Hello-World. Whatโ€™s your favorite hidden print() parameter?"
English
0
0
0
5
Gugu Loneman
Gugu Loneman@Guoguanglanยท
@Python_Dv C. end: String appened after the last value, default a new line.
English
0
0
0
65
๊ณต์œ