- 1
What's the point in using plus here . Without it also it is giving the same result print("First string" + ", " + "second string
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()...
+ 1
sorry as iam new . iam still getting used to it . tnx for the answer