나는 이렇게 학습한다/Algorithm & SQL
1209. Grasshopper - Combine strings
daco2020
2022. 12. 9. 21:20
Combine strings function
Create a function named (combine_names) that accepts two parameters (first and last name). The function should return the full name.
Example:
combine_names('James', 'Stevens')
returns:
'James Stevens'
Solution:
class Names:
@staticmethod
def combine(a, b):
return " ".join([a, b])
combine_names = Names.combine