0% found this document useful (0 votes)
14 views28 pages

PWP Practicals Exam

The document outlines a series of practical exercises for implementing various Python programming concepts, including operators, conditional statements, looping statements, and data structures such as lists, tuples, sets, and dictionaries. It also covers user-defined functions, packages, classes, constructors, and inheritance. Each section specifies the tasks to be completed along with placeholders for outputs.

Uploaded by

pp4305840
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)
14 views28 pages

PWP Practicals Exam

The document outlines a series of practical exercises for implementing various Python programming concepts, including operators, conditional statements, looping statements, and data structures such as lists, tuples, sets, and dictionaries. It also covers user-defined functions, packages, classes, constructors, and inheritance. Each section specifies the tasks to be completed along with placeholders for outputs.

Uploaded by

pp4305840
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
You are on page 1/ 28

Practical No.

*Implement a python programs using following operators: 1. Arithmetic 2. Relational &


logical 3. Assignment 4. Bitwise 5. Membership 6. Identity

1] Arithmetic

Output:

2] Relational & logical


Output:

3] Assignment

Output:

4] . Bitwise
Output:

5] Membership

Output:

6] Identity

Output:
Practical No.4

*Implement a python program to demonstrate the use of following conditional statements:


1. if statement 2. if..else statement 3. if..elif..else statement 4. nested if statement

1]

Output:

2]

Output:

3]
Output:

4]

Output:
Practical No.5

*Implement a python program to demonstrate the use of following looping statements: 1.


while loop 2. for loop 3. nested loop

1] while loop

Output:

2]for loop
3]nested loop

Output:

Practical No.7
*Implement a python program to perform following operations on the List: 1. Create a List 2.
Access List 3. Update List 4. Delete List

1]

Output:

2]

Output:

3]
Output:

4]

Output:
Practical No.9

*Implement python program to perform following operations on the Tuple: 1. Create a Tuple
2. Access Tuple 3. Print Tuple 4. Delete Tuple 5. Convert tuple into list and vice-versa

1] Create a Tuple

Output:

2] . Access Tuple

Output:

3] . Print Tuple
Output:

4] . Delete Tuple

Output:

5] . Convert tuple into list and vice-versa

Output:
Practical No.10

*Implement a python program to perform following operations on the Set: 1. Create a Set
2. Access Set 3. Update Set 4. Delete Set

1] Create a Set

Output:

2] . Access Set

Output:

3] Update Set
Output:

4] Delete Set

Output:

Practical No.12

*Implement a python program to perform following operations on the Dictionary: 1. Create


a Dictionary 2. Access Dictionary 3. Update Dictionary 4. Delete Dictionary 5. Looping
through Dictionary 6. Create Dictionary from list

1]
Output:

2]

Output:

3]

Output:

4]
Output:

5]

Output:

6]
Output:

Practical No.14

*Implement user defined function for given problem: 1. Function positional/required


argument 2. Function with keyword argument 3. Function with default argument 4. Function
with variable length argument
1] Function positional/required argument

2] Function with keyword argument

3] Function with default argument


Output:

4] Function with variable length argument

Practical No.18 *

Write python program to create and use a user defined package for a given problem.
Practical no.20

*Develop a python program to perform following operations: 1. Creating a Class with


method 2. Creating Objects of class 3. Accessing method using object

Practical no.21
*Write a python program to demonstrate the use of constructors: 1. Default 2.
Parameterized 3. Constructor Overloading

1] Default

2] Parameterized

3] Constructor Overloading
Practical no.22
*Implement a python program to demonstrate 1. Method Overloading 2. Method
Overriding

Ex.1] Method overloading

Ex.2] Method overloading


2] Method Overriding
Practical no.24

*Write a python program to implement 1. Single inheritance 2. Multiple Inheritance 3.


Multilevel inheritance

You might also like