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

Dr. Shyama Prasad Mukherjee University, Ranchi: Lab Assignment

The document is a lab assignment for the MCA program at Dr. Shyama Prasad Mukherjee University, detailing various Python programming tasks. It includes exercises on list manipulation, arithmetic calculations, string and number checks, file handling, and object-oriented programming. The assignment is intended for students to practice and demonstrate their programming skills in Python.

Uploaded by

anil raj
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)
22 views2 pages

Dr. Shyama Prasad Mukherjee University, Ranchi: Lab Assignment

The document is a lab assignment for the MCA program at Dr. Shyama Prasad Mukherjee University, detailing various Python programming tasks. It includes exercises on list manipulation, arithmetic calculations, string and number checks, file handling, and object-oriented programming. The assignment is intended for students to practice and demonstrate their programming skills in Python.

Uploaded by

anil raj
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

Dr.

Shyama Prasad Mukherjee University, Ranchi


(Through the Upgradation of Ranchi College, Ranchi)
Department of: MCA & M.Sc.IT

LAB ASSIGNMENT
Paper Code: CPMCA403 Course: MCA
Paper Name: Lab on Python Programming Semester: IV
Sl Questions Page Remarks

Write a Python program to create a list variable with contain six items to slice
1
the middle two items and display.
Write a Python program to make an Arithmetical Calculator using built-in
2
functions.
Write a Python program that checks whether a specified value is contained
3
within a group of values.
Write a Python menu driven program to convert the given temperature from
4
Fahrenheit to Celsius and vice versa depending upon user’s choice.
Write a Python program to input an integer value to convert it in Decimal,
5
Binary, Octal and Hexadecimal.
Write a Python program input three numbers through the user to find out
6
greatest of three numbers using nested if statements.
7 Write a Python program to check if an item is already present in a Dictionary.
Write a Python program to create the multiplication table (from 1 to 10) of a
8
number.
9 Write a Python program to find out factorial of a given number.
Write a Python program input a number which is any digits to check the
10
number is Palindrome or not Palindrome.
Write a Python program input a number to check the number is Prime or not
11
Prime.
Write a Python program input a number which is any digits to check the
12
number is Armstrong or not Armstrong.
Write a Python program to check whether a string is Palindrome or Not
13
Palindrome.
Write a Python program input N numbers to calculate sum and average, If
14 found a negative number then stop the iteration and display the sum and
average.
15 Write a Python program to generate Fibonacci series up to 10 terms
16 Print the following pattern:
1 54321 A
12 4321 A B
17 123 321 A BC
1234 21 A BCD
18 12345 1 A BCDE
19 Write a Python program to find out Reverse of a String, Tuple, List and Range
Write a Python program to find out maximum of an integer numbers, floating
20
point numbers, Characters, Strings and Lists using built-in function.
Write a program in Python to print current date and time using built-in
21
function.
22 Write a program in Python to find the day of the week of a given date.
23 Write a Python program that prints the calendar for a given month and year.

Submitted To: DR. A.K. Mohapatra, Assistant Professor, Dept. of MCA & M.Sc. (IT)
Dr. Shyama Prasad Mukherjee University, Ranchi
(Through the Upgradation of Ranchi College, Ranchi)
Department of: MCA & M.Sc.IT

24 Write a Python program that prints the calendar for a given year.
25 Write a Python program to Calculate number of days between two dates
Write a Python program to swapping of two numbers with using function with
26
arguments and no return value.
27 Write a Python program to calculate number of days between two given dates.
Write a Python program to find out Area of Circle and Area of Triangle using
28
function with arguments and return value.
Write a Python program to calculate simple interest using Required argument
29
function.
Write a Python Program to perform different set operations like in
30
mathematics (Union, Intersection, Difference and Symmetric difference)
Write a Python program with using default argument function give a suitable
31
example.
Write a Python program with using variable length argument function give a
32
suitable example.
Write a Python program with using class and object to input two numbers by
33
getdata() member function to calculate sum and display in display() function.
Write a Python program to illustrate the use class and object to passing by
34
value to the function and calculate sum and display.
35 Write a python program using single inheritance give a suitable example.
36 Write a python program using multiple inheritance give a suitable example.
Write a Python program to illustrate the use of __init__ method give a suitable
37
example.
38 Write a Python program with using try-except block give a suitable example.
Write a Python program with using try-except-else block give a suitable
39
example.
Write a Python program with using try-except-else-finally block give a suitable
40
example.
41 Write a Python program to transpose a square matrix.
42 Write a Python program to multiplication of two matrices.
Write a Python program with using file handling to create a file, write some
43
text in the file.
Write a Python program with using file handling to open an existing file and
44
check “File not found” if file not available in disk.
45 Write a Python Program to copy source file content to destination File.
Write a Python program during run time to make a directory, renaming
46
directory, removing directory, etc.

Submitted To: DR. A.K. Mohapatra, Assistant Professor, Dept. of MCA & M.Sc. (IT)

You might also like