-
Swap the first element with (n-1)th element of the list, create a list from the user input
-
Usage of Operand, * → using operand function displays the output in the below format:
input: list =[1
, 2
, 3
, 4
]
o/p: 1
[2, 3]
4
Swap the first element with (n-1)th element of the list, create a list from the user input
Usage of Operand, * → using operand function displays the output in the below format:
input: list =[1
, 2
, 3
, 4
]
o/p: 1
[2, 3]
4