0% found this document useful (0 votes)
2 views4 pages

CBSE Compartment Exam Guide 2024

Uploaded by

madhulekababu
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views4 pages

CBSE Compartment Exam Guide 2024

Uploaded by

madhulekababu
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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

You might also like