- 1

What's the point in using plus here . Without it also it is giving the same result print("First string" + ", " + "second string

17th Jul 2017, 2:54 PM
Sagar goten
Sagar goten - avatar
2 Respuestas
+ 4
Same as what? @@ Use title field for short description and description field for developing your question and/or provide code ^^ Anyway: print('string'+var) only work with string var... print('string{}'.format(var)) do same but with any var type... print('string',var) works with any var type, but introduce a default space as separator... print('string',var,sep='') so works as format()...
17th Jul 2017, 3:06 PM
visph
visph - avatar
+ 1
sorry as iam new . iam still getting used to it . tnx for the answer
17th Jul 2017, 3:09 PM
Sagar goten
Sagar goten - avatar