In this code I wanted to iterate over each item in the list starting at index [4] finishing at index [3]. Is there any way to improve the cumbersome manner in which I have written the code to achieve this? I tried "for a in days[4:3] but this only iterated indexes 4 to 6 and never 0-3;
mar = int(input())
days = ["0","1","2","3","4","5","6"]
count = 0
x = "0"
while count < mar:
for a in days[4],[5],[6],[0],[1],[2],[3]:
if count < mar:
count += 1
x = a
print(x)