Number Game
A group of people are playing a game.They are standing and each carring a card with a number on it.These numbers in the list A. A random number S iis selected.
Find out the new list of numbers after
Sample Input1
1,2,3
1
Sample Output1
2 3
1 2
test_list = [1,2,3]
print("Original list is : " + str(test_list))
test_list.pop(0)
test_list.pop(-1)
print("Modified list is : " + str(test_list))
Comments
Leave a comment