Programming in Python
Programming in Python
6 min )
1. Write a Python program to implement a stack using a list data-
structure.
2. Write a python Program to implement Queue using a list data
structure
3. Write a function in Python to check the primarily of an integer
number. Also implement this function in a Python Program.
4. Write a function in Python to swap() first half of the elements
with the second half of the elements. Also implement this
function in a Python Program
Example:
List = [1,2,3,4,5,6,7,8,9,10]
Result = [ 6,7,8,9,10,1,2,3,4,5]