What is the result of 'hello' + 'world' in Python?
-
A
'helloworld'
Correct answer
-
B
'hello world'
-
C
'hello' 'world'
-
D
Error
Correct answer
A. 'helloworld'
18 views
Explanation
The + operator concatenates strings, so 'hello' + 'world' results in 'helloworld'.
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ