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

test hello world - Run Test

def test_hello_world():
    assert text == "Hello World"

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
hello = "Hello" world = "World" # Final text should be: # "Hello World" text = ? print(text) # Use the Run Code button to try it on your own