<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Example to showcase how to and how not to use in-place modification of mutable sequence.
*Scenario 1 
Step1:  *Scenario 2 
<ASSISTANT_TASK:>
Python Code:
palPhrase = ['r', 'i', 's', 'e', 't', 'o', 'v', 'o', 't', 'e', 's', 'i', 'r']
newLoopCnt = 0
print "==" * 2 + "direct (in-place modification) operations on the list" + "==" * 2
print "Length of the list : %d" %(len(palPhrase))
for ee in palPhrase:
    print "Counter {0}".format(newLoopCnt)
    ff = palPhrase.pop()
    print "Popped element : ", ff
    newLoopCnt = newLoopCnt + 1
print "Elements in the original list : ", palPhrase
Explanation: Example to showcase how to and how not to use in-place modification of mutable sequence.
*Scenario 1 :
** The phrase, 'rise to vote sir', is being handled via for-in iteration.
** Iteration, by default, operates on the sequence from Left to Right.
** pop() method used in the code below operates from Right to Left (Last-in First-out)
What is not obvious to the beginner ?
*** When the counter has reached '6', list iteration is exhaused and there is no more elements to pop.
End of explanation
palPhrase = ['r', 'i', 's', 'e', 't', 'o', 'v', 'o', 't', 'e', 's', 'i', 'r']
loopCnt = 0
print "==" * 2 + "operations using a copy of the list" + "==" * 2
print "Length of the list : %d" %(len(palPhrase))
for cc in palPhrase[:]:
    print "Counter {0}".format(loopCnt)
    dd = palPhrase.pop()
    print "Popped element : %s" %(dd)
    loopCnt = loopCnt + 1
print "Elements in the original list : ", palPhrase
print "Find out why the original list is empty"
Explanation: *Scenario 2 :
** The phrase, 'rise to vote sir', is being handled via for-in iteration.
** Iteration, by default, operates on the sequence from Left to Right.
** pop() method used in the code below operates from Right to Left (Last-in First-out)
What is different here?
*** for-in iteration is working on a copy of the sequence which is done using a slice operator on the original sequence. Remember, slicing on a sequence without start and stop markers makes a copy of the original sequence.
End of explanation
<END_TASK>