Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Переписать функцию concatenation так, чтобы она принимала произвольное количество аргументов.
- def concatenation(a, b, c):
- res = ''
- for item in (a, b, c):
- res += item
- return res
- if __name__ == '__main__':
- print(concatenation('word_one', ' and ', 'word_two'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement