2 Respuestas
+ 4
Sounds like you can just use slices if I understand you correctly.
scale = ['A','A#','B','B#','C','C#','D','D#','E','E#','F','F#','G#']
i = scale.index('D')
l = scale[i:] + scale[:i]
print(l)
outputs:
['D', 'D#', 'E', 'E#', 'F', 'F#', 'G#', 'A', 'A#', 'B', 'B#', 'C', 'C#']
+ 1
https://code.sololearn.com/cxvVz3dY4S51/?ref=app
Something like this?