0% found this document useful (0 votes)
14 views

Lab Manual

The document outlines a list of 25 practical outcomes (Pros) for an Advanced Python Programming course. It includes tasks related to sets, tuples, dictionaries, functions, modules, packages, exceptions, files and file I/O, and turtle graphics.

Uploaded by

mmieduindiaanand
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Lab Manual

The document outlines a list of 25 practical outcomes (Pros) for an Advanced Python Programming course. It includes tasks related to sets, tuples, dictionaries, functions, modules, packages, exceptions, files and file I/O, and turtle graphics.

Uploaded by

mmieduindiaanand
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

INDEX

ADVANCED PYTHON PROGRAMMING [C4321602 ]


Semester-2
Name of Student:________________ Enrolment:_____________
Division:________________ Batch:__________

Page Marks Sign.


Sr. Date Practical Outcomes (PrOs) no.
No
1 Write a program to demonstrate the set
functions and operations.
Write a program to input n numbers from the
2 user and store these numbers in a tuple. Print
the maximum and minimum number from this
tuple.
Create a user-defined function that prints a tuple
3 whose values arethe cube of a number between
1 and n (both included), Where n is an integer
number and passed as an argument.
Write a program to input names of n employees
4 and store them in a tuple. Also, input a name
from the user and find if this employee is present
in the tuple or not.
5 Write a program to demonstrate tuples functions
and operations
Create a dictionary with the roll number, name,
6 and marks of n students in a class and display the
names of students who have scored marks above
75.
7 Write a program to count the number of times a
character appears
in a given string using a dictionary.

Write a user-defined function to convert a


8 number entered by the user into its
corresponding number in words. For example, if
the input is 789 then the output should be '
Seven Eight Nine ‘.
Write a program to concatenate the following
INDEX
ADVANCED PYTHON PROGRAMMING [C4321602 ]
Semester-2
Name of Student:________________ Enrolment:_____________
Division:________________ Batch:__________

dictionaries tocreate a new one.


Sample Dictionary:
9
dic1={1:10, 2:20}
dic2={3:30, 4:40}
dic3={5:50,6:60}
Expected Result: {1: 10, 2: 20, 3: 30, 4: 40, 5: 50,
6: 60}
Write a program to demonstrate the
10
dictionaries functions andoperations.
Write a program to define a module to find the
area andcircumference of a circle.
11 a) import the module to another program.

b) import a specific function from a module to


another program.
Create a package named DemoPackage which
contains two modules named mathematics
and greets. The mathematics module contains
12 sum, average, power functions, and the greets
module contains the sayHello function.
a) import the module from a package to another
program.
b) import a specific function from a module.
Install urllib3 package using PIP. Send HTTP
13 requests to any URLand print status for the
same.

14 Write a program to catch on Divide by zero


Exception with finallyclause.

15 Write a user-defined exception that could be


raised when the textentered by a user consists of
less than 10 characters.
16 Write a python program to demonstrate
exception handling.
17 Write a program to read the content of file line
by line and write it
INDEX
ADVANCED PYTHON PROGRAMMING [C4321602 ]
Semester-2
Name of Student:________________ Enrolment:_____________
Division:________________ Batch:__________

to another file except for the lines containing "a"


letter in it.

18 Write a program that inputs a text file. The


program should printall of the unique words
in the file in alphabetical order.

Write a program to create a binary file to store


19 Rollno and Name,Search any Rollno and display
name if Rollno found otherwise “Rollno not
found”.
20 Write a program to demonstrate the file and file
I/O operations.
21 Draw square, rectangle, and circle using Turtle.

22 Draw color-filled shapes (square, rectangle, and


circle) using Turtle.
23 Draw a smiling face emoji and rainbow using
Turtle.
24 Draw an Indian Flag and an Olympic Symbol using
Turtle
25 Draw a chessboard using Turtle.

You might also like