+ 1
How do you explain these 2 outputs
run print("hallo" + " world"), result: hallo world but if you run: print("hallo", "world"), result would be: ("hallo", "world") notice the second one has quotation mark and brackets included while the first one has only the letters. why?
3 Respuestas
+ 8
The first is an ordinary string concatenation while the second one is an array(tuple)
...so it adds spaces in between it's it's items by default!
+ 4
Hmm... I'm pretty sure print("Hallo", "world") just prints Hallo world
No brackets, no quotes...
+ 3
How about writing those two lines of code and saving them as a public code and posting the link here?