I don't know how to convert this loop in C to Python. Thanks in advance
I tried to convert
for(i=start, i<=end, i++)
printf(ids[i])
to:
for x in range(start, end, ids):
print(x)
But range requires integer values and ids is a list of strings.
I tried casting ids as integers but it says
"ValueError: invalid literal for int()"
I need the values in ids to stay as characters because there are some letters in it.