Simple stack program using python #python #stackprogram #code

program of stack:...............


 print("size of stack")

s = []

n = int(input())

for i in range(0,n,1):

    

    t=int(input())

    s.append(t)

print('elements ')

print(s)

print('\npoped ')

print(s.pop())

print(s.pop())

print('\n poped:')

print(s)


Comments

Popular posts from this blog

Windows 11 is Free ?

MCQ ON PYTHON

पब्जी आ रहा वापस है.Pubg come with new name as Battleground mobile india.पब्जी का लोगो भी आ गया है