Does an ordinary for/in statement guarantee the list is iterated in order?
my_list = [5,4,3,2] for i in my_list print(i)
That is, is the lo
If you want to test it yourself:
my_list = [5,4,3,2] for _ in range(20): new_list = [] for i in my_list: new_list.append(i) print(my_list == new_list)
And just for a control case:
print([2,4,5,3] == my_list)