What will be the output of the following Python program?

s1 = "Hello"
s2 = "World"
s3 = s1 + " " + s2
print(s3)
                        

Options

  • A. HelloWorld
  • B. Hello World
  • C. Error
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

B. Hello World

Detailed Explanation

The + operator concatenates strings in Python. The space between the strings is included explicitly.