def func(*arg): sum = "" for i in arg: sum = sum + str(i) + "_" sum = sum.strip("_") return sumprint(func([1,"alex", "wusie"]))