Write a function that takes in two parameters, first_name
and last_name
, and returns a formatted string of the format "<first_name> <last_name>"
.
Kretch
Johnson
Doe
Instructor solution
3.2 Strings - Lesson
Concatenation
Similar to how we can perform different operations on ints (i.e., math), we can perform various operations on strings!
One common operation is known as 'concatenation'. This means combining multiple strings into one, and it can be done in Python via the +
operator, as such:
You may exit out of this review and return later without penalty.