def concat2(s1, s2, s3):
result = s1 + s2 + s3
return result
Function Call | Return Value | |||
---|---|---|---|---|
concat2('Car', 'wash', ' needed') | → | |||
concat2('He', 'llo', ' world') | → | |||
concat2('5', '8', '1') | → | |||
concat2('Snow', 'ball', ' fight') | → | |||
concat2('Rain', 'boots', '') | → | |||
concat2('Reading', 'bat', ' is fun') | → | |||
concat2('', 'Hi', '') | → | |||
concat2('', '', '') | → | |||
concat2(' ', ' ', ' ') | → |
Experiment with this code on Gitpod.io