The document outlines a set of questions related to Lists and Tuples in Python for the Sanjivani K.B.P. Polytechnic for the academic year 2024-2025. It includes questions about methods, operations, and comparisons between Lists and Tuples, as well as programming tasks. The document is intended for students in the Computer Science department and is structured for educational purposes.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
8 views1 page
Programming With Python 1 1738735059070
The document outlines a set of questions related to Lists and Tuples in Python for the Sanjivani K.B.P. Polytechnic for the academic year 2024-2025. It includes questions about methods, operations, and comparisons between Lists and Tuples, as well as programming tasks. The document is intended for students in the Computer Science department and is structured for educational purposes.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
Sanjivani Rural Education Society’s
SANJIVANI K.B.P. Year :- 2024-2025
POLYTECHNIC, List and Tuple KOPARGAON Dept :- CM ACAD/F/23 Subject :- PWP Pages :- 01 Rev=00 Date :- 11/12/2017 Unit No. :- 03 Date of Submission :- Name of Subject Teacher :- Prof. M. V. Khasne Total No. of Questions :-
Q. 1 Describe any four methods of Lists in Python.
Q. 2 Use of any four methods of tuple in python? Q. 3 Write a program to input any two tuples and interchange the tuple variable. Q. 4 Explain why tuples are called as immutable. Q. 5 How to define and access elements of a List? Q. 6 What are different operations performed on a List? Explain with examples. Q. 7 Write a Python program to describe different ways of deleting an element from List. Q. 8 What is tuple in Python? How to create and access it? Q. 9 Write operations on tuples with examples.. Q. 10 Compare List and Tuple. Q. 11 How append() and extend() are different with reference to List in Python. Q. 12 Write the output for the following: (i) >>> a=[1,2,3] >>> b=[4,5,6] >>> c=a+b (ii) >>> [1,2,3]*3 (iii) >>> t=[‘a’,’b’,’c’,’d’,’e’,’f’] >>> t[1:3]=[‘x’,’y’] >>> print(t) Q. 13 Write the output of the following code: Str=’Maharashtra State Board of Technical Education’ print(x[15::1]) print(x[-10:-1:2])