collections.deque.reverse

deque.reverse()

D.reverse() – reverse IN PLACE