You are on page 1of 24

Computer

Programming

DHRUV GUPTA
2023UCA1867
CSAI-1
NSUT
Program Number 12
Q.2) Handle exceptions for file in python
Input

Output
Program Number 12
Q.1 Read Data from text file and perform
operations
Input

Output
Program Number 11
Q.1 Implement string operations
concatenation and slicing.
Input

Output
Program Number 10
Q.2) Perform basic Operations and
indexing on Numerical python Array
Input

Output
Program Number 10
Q.1) Create and Manipulate Numerical
python Array
Input

Output
Program Number 9
Q.2 Import and use functions from
external package (Math and Random)
Input

Output
Program Number 9
Q.1 Create a module that contains
functions for mathematical operations
Input

Output
Program Number 8
Q.2 Use lambda functions Map Filter
Reduce to perform operations on a list.
Input

Output
Program Number 8
Q.1 Write a function to generate Fibonacci
series.
Input

Output
Program Number 7
Q.2 Implement inheritance by creating
subclasses for different types of books.
Input

Output
Program Number 7
Q.1 Create a class to represent a book
with attributes and methods
Input

Output
Program Number 6
Q.2 Use Dictionaries to store and retrieve
student grades.
Input

Output
Program Number 6
Q.1 Perform various operations on list
sorting slicing indexing
Input

Output
Program Number 5
Q.2) Implement a function to check
whether a string is palindrome or not
Input

Output
Program Number 5
Q.1) Write a function which calculate
the sum of two numbers in python
Input

Output
Program Number 4
Q.2 Write a program to print the
factorial of given number using while
loop
INPUT

OUTPUT
Program Number 4
Q.1) Write a python program to print
the Fibonacci series using for loop
INPUT

OUTPUT
Program Number-3
Q.2 Write a python program to
implement simple calculator
INPUT

OUTPUT
Program Number-3
Q.1 Write a program to check whether
a number is even or odd
INPUT

OUTPUT
Program Number 2
Q.2 Perform basic arithmetic operation
INPUT

OUTPUT
Program Number-2
Q.1 Write a program to calculate the
area of circle given its radius
INPUT

OUTPUT
Program Number 1
Q.1 Write a program to print ‘Hello
World’.
Input

Output

You might also like