Combine Strings
Beginner
Combine Strings Challenge
Let's have some fun with strings! Your task is to write a function that takes two strings as input and combines them into one, with a space in between.
Imagine you are making a sandwich, and each string is a slice of bread. The space is like the yummy filling that holds them together! 😋
For example, if we have two strings, "Hello" and "world", when combined, they should become "Hello world".
Your goal is to write a function combine_strings that performs this magical operation of combining two strings with a space in between.
Examples
combine_strings("Goodbye", "moon") # should return "Goodbye moon" combine_strings("Python", "rocks") # should return "Python rocks" combine_strings("Keep", "coding") # should return "Keep coding"
Are you ready to be the master of string sandwiches? 🍞🥪🍞 Happy coding!
Inputs
Arg 1:
"Goodbye"Arg 2:
"moon"Expected Output
"Goodbye moon"Actual Output