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

Assignment 1-3

The document outlines a series of questions and programming tasks related to Python, divided into three units. Topics include basic concepts like indentation, variables, and data types, as well as control structures such as loops and operators. It also covers advanced topics like lists, tuples, and dictionaries, with specific programming exercises to reinforce learning.

Uploaded by

guse4373
Copyright
© © All Rights Reserved
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% found this document useful (0 votes)
2 views2 pages

Assignment 1-3

The document outlines a series of questions and programming tasks related to Python, divided into three units. Topics include basic concepts like indentation, variables, and data types, as well as control structures such as loops and operators. It also covers advanced topics like lists, tuples, and dictionaries, with specific programming exercises to reinforce learning.

Uploaded by

guse4373
Copyright
© © All Rights Reserved
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/ 2

Unit 1

Q1. Explain with example


1. Indentation
2. Variables
Q2. List features of python
Q3. Explain comments in python
Q4. List data type used in python
Q5. Write a python program to display ‘Welcome’ message

Unit 2
Q1. Explain Membership operator
Q2. Explain Identity Operator
Q3. Explain Conditional Statement in python
Q4. Explain Whille loop in python
Q5. Explain Continue, Pass and Break statement in python

Unit 3
Q1. Differentiate between list and tuple
Q2. Write the output of the following:
i) >>> a = [2, 5, 1, 3, 6, 9, 7 ]
>>> a [ 2 : 6] = [ 2, 4, 9, 0]
>>> print (a)
ii) >>> b = [ “Hello” , “Good” ]
>>> b. append ( “python” )
>>> print (b)
iii) >>> t1 = [ 3, 5, 6, 7 ]
>>> print (t1 [2])
>>> print (t1 [–1])
>>> print (t1 [2 :])
>>> print (t1 [:])
Q3. Explain Four built-in Tuple function in Python
Q4. Give any six set operation in python
Q5. Write a program to create dictionary of students that
includes their ROLL NO. and NAME.
i) Add three students in above dictionary
ii) Update name = ‘Shreyas’ of ROLL NO = 2
iii) Delete information of ROLL NO = 1

You might also like