mic_a = [1, 2, 3, 4] mic_b = [4, 1, 2, 3] delay = 0 for i in range(len(mic_b)): if mic_a == mic_b: print(delay) break else: mic_b = mic_b[1:] + mic_b[:1] delay += 1
To embed this project on your website, copy the following code and paste it into your website's HTML: