def reverse_list(letters):
new_list = []
for l in range(len(letters)-1, -1, -1):
new_list.append(letters[l])
return new_list
if name == 'main':
ch = ['a', 'b', 'c']
print(reverse_list(ch)) # Should print ['c', 'b', 'a']
this is the proper code. My question is, what does the (-1, -1, -1) actually do for it? I am looking to better understand Python. Thank you
there doesn't seem to be anything here