A

Admin • 832.27K Points
Coach

Q. What is the output of the following code?

Code:
print( 'Hello' + ' ' + 'World' )
  • (A) Hello World
  • (B) HelloWorld
  • (C) Hello+World
  • (D) Error
  • Correct Answer - Option(A)
  • Views: 28
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

The `+` operator concatenates strings including spaces.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.