Concatenate Strings
Strings support different operators, the most common one being the plus sign (+
). Complete the code in the editor to concatenate the strings given (hello
and world
) to form the final string "Hello World"
.
Hint: Make sure you're including the space between the words.
Test Cases
Solution 1
hello = "Hello"
world = "World"
# Final text should be:
# "Hello World"
text = hello + ' ' + world
print(text) # Use the Run Code button to try it on your own