Advertisement
go6odn28

5_concatenate

May 29th, 2024
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. def concatenate(*args, **kwargs):
  2.     args_concatenate = "".join(args)
  3.    
  4.     for key in kwargs:
  5.         if key in args_concatenate:
  6.             args_concatenate = args_concatenate.replace(key, kwargs[key])
  7.     return args_concatenate
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement