Python string literal concatenation


#1

Correct syntax to combine two strings is print “str1”+“str2” but when i’m doing like this :- print"str1" “str2” then i’m getting the same output as previous one whats the reason for it ? plz help me


FAQ: Learn Python - Python Syntax - Numbers
#2

https://docs.python.org/reference/lexical_analysis.html#string-literal-concatenation