Contact: aviboots(AT)netvision.net.il
39,923 questions
51,856 answers
573 users
import collections q = collections.deque([1, 18, '27', "c++", 'python', 18, 19, 100]) print(q) q.reverse() print(q) ''' run: deque([1, 18, '27', 'c++', 'python', 18, 19, 100]) deque([100, 19, 18, 'python', 'c++', '27', 18, 1]) '''