def Join(arr, sep): if len(arr) == 0: return ''; res = arr[0]; for i in range(1, len(arr)): res += sep + arr[i] return res;