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
Strings support different operators, the most common one being the plus sign (
+). Complete the code in the editor to concatenate the strings given (
world) to form the final string
Hint: Make sure you're including the space between the words.
test hello world - Run Test
def test_hello_world(): assert text == "Hello World"