Contact: aviboots(AT)netvision.net.il
39,884 questions
51,810 answers
573 users
import collections q = collections.deque([1, 18, '27', 2, 'python', 18, 19, 18]) print(q) N = -3 q.rotate(N) print(q) ''' run: deque([1, 18, '27', 2, 'python', 18, 19, 18]) deque([2, 'python', 18, 19, 18, 1, 18, '27']) '''