Cbse 2024 compartment
30 i)
ii)
Cbse 2024
Cbse 2023 compartment
Cbse 2023
30 a)
or
b)
Cbse 2022 compartment
8) a)
def PUSH(N):
OnlyA = []
for name in N:
if 'A' in name:
[Link](name)
return OnlyA or
b)
Cbse 2022
1. Stack is a linear data structure that follows a particular order in which the operations are
performed. The order may be LIFO(Last In First Out) This strategy states that the element that is
inserted last will come out first.
Python list pop() is an inbuilt function in Python that removes and returns the last value from the
List or the given index value.
pop() which can help you to remove last object.
Method : Using pop() function
example: [Link]()
Explanation: Pop function accepts index as an optional parameter to remove object from the list. By
default the value of the parameter is -1. Hence to remove the last object we need not mention any
parameter to it.
8.
or