Bungkus daftar Python

ls[index % len(ls)]
Comfortable Caterpillar