100% found this document useful (1 vote)
289 views2 pages

Lab Assignment Questions of Python

This document contains 30 programming assignments for a Python programming lab course. The assignments cover a range of Python topics including arithmetic calculations, conditional statements, data types, functions, classes, exceptions, file handling, and directories. Students are asked to write Python programs to demonstrate skills in these various areas of Python programming.

Uploaded by

User
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
100% found this document useful (1 vote)
289 views2 pages

Lab Assignment Questions of Python

This document contains 30 programming assignments for a Python programming lab course. The assignments cover a range of Python topics including arithmetic calculations, conditional statements, data types, functions, classes, exceptions, file handling, and directories. Students are asked to write Python programs to demonstrate skills in these various areas of Python programming.

Uploaded by

User
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
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: ECMCA401 Course: MCA
Paper Name: Lab on Python Programming Semester: IV
Sl Questions Page Remarks
Write a Python program to make an Arithmetical Calculator using
1
built-in functions.
Write a Python menu driven program to convert the given
2 temperature from Fahrenheit to Celsius and vice versa depending
upon user’s choice.
Write a Python program to input an integer value to convert it in
3
Decimal, Binary, Octal and Hexadecimal with using format function.
Write a Python program input three numbers through the user to find
4
out greatest of 3 numbers using nested if statements.
Write a Python program to check if an item is already present in a
5
Dictionary.
6 Write a Python program to find out factorial of the given number.
Write a Python program input a number which is any digits to check
7
the number is Palindrome or not Palindrome.
Write a Python program input a number to check the number is Prime
8
or not Prime.
Write a Python program input a number which is any digits to check
9
the number is Armstrong or not Armstrong.
Write a Python program to check whether a string is Palindrome or
10
Not Palindrome.
Write a Python program input N numbers to calculate sum and
11 average, If found a negative number then stop the iteration and
display the related output.
Write a Python program to find out Reverse of a String, Tuple, List,
12
Range and Set and display the output in proper format.
Write a Python program to find out greatest of an Integer numbers,
13
Floating point numbers, Characters, Strings and Lists.
Write a Python program to swapping two numbers using function with
14
arguments and no return value.
Write a Python program to find out Area of Circle and Area of Triangle
15
using function with arguments and return value.
Write a Python program to calculate simple interest using Required
16
argument function.
Write a Python Program to perform different set operations like in
17 mathematics (Union, Intersection, Difference and Symmetric
difference)
Dr. Shyama Prasad Mukherjee University, Ranchi
(Through the Upgradation of Ranchi College, Ranchi)

Department of: MCA & M.Sc.IT

Write a Python program with using default argument function give a


18
suitable example.
Write a Python program with using variable length argument function
19
give a suitable example.
Write a Python program with using class and object to input two
20 numbers by input() member function to calculate sum and display in
display() function.
Write a Python program to illustrate the use class and object to
21
passing by value to the function and calculate sum and display.
Write a Python program to illustrate the use of __init__ method give
22
a suitable example.
Write a Python program with using try-except block give a suitable
23
example.
Write a Python program with using try-except-else block give a
24
suitable example.
Write a Python program with using try-except-else-finally block give
25
a suitable example.
26 Write a Python program to transpose a square matrix.
27 Write a Python program to multiplication of two matrices.
Write a Python program with using file handling to create a file, write
28
some text in the file.
Write a Python program with using file handling to open an existing
29
file and also check “File not found” if file not available in disk.
30 Write a Python Program to copy source file content to destination File.
Write a Python program during run time to make a directory,
31
renaming directory, removing directory, etc.

Submitted To:
Dr. A.K. Mohapatra
Assistant Professor
Dept. of MCA & M.Sc.IT
Dr. S.P.M. University, Ranchi

You might also like