Questions tagged [shift]

Questions related to the usage of the right and/or left shift key on the keyboard. For questions regarding bitwise shift operations use [bit-shift]

Questions related to the usage of the right and/or left Shift key on the keyboard. For questions regarding bitwise shift operations use

1054 questions
-7
votes
2 answers

How to Shift an array circularly on VBA

I have the array (1,2,3) and I would like to do a circular shift in order to obtain for example (3,1,2) or (2,3,1). In Matlab I know how to do that using the following code: Y = circshift(A,K) Can u please help me with this task? I'd appreciate…
Augusto
  • 21
  • 6
-9
votes
1 answer

How do I shift these values between variables? (python)

There are three integer variables, a, b and c, which have been initialized. Write code to shift the values in these variables around so that a is given b’s original value, b is given c’s original value, and c is given a’s original value.
1 2 3
70
71