Gabungkan item daftar python dengan indeks satu demi satu
def mix_patterns(*args):
arglens = len(args[0])
for arg in args:
if len(arg) != arglens:
return f'All lists must be of same length'
num = []
for i in range(arglens):
for x in range(len(args)):
num.append(args[x][i])
return num
print(mix_patterns([2,4,6,8],[1,3,5,7]))
Frail Frog