Deque in Python-question-5

Last Updated :
Discuss
Comments

When using the 'rotate(n)' method on a deque, what does a negative value for n signify?

Rotate to the left by n steps.

Rotate to the right by n steps.

Reverse the deque entirely.

No rotation occurs.

Share your thoughts in the comments