4 Marks
4 Marks
Summer 22
1
12
123
1234
d) Write a program to create class EMPLOYEE with ID and NAME and display its contents.
a) List Data types used in python. Explain any two with example.
d) Write a program for importing module for addition and substraction of two numbers.
a) Write a program to create dictionary of students that includes their ROLL NO. and NAME
b) Explain decision making statements If- else, if- elif- else with example.
Summer 23
a) Write a python program to input any two tuples and interchange the tuple variables.
c) With neat example differentiate between readline() and readlines() functions in file-handling.
Summer 24
1010101
10101
101
i) Numpy
ii) Pandas
a) What is the output of the following program?
dict1⋅update(dict2);
b) Write a python program that takes a number and checks whether it is a palindrome.
c) Write a python program to create a user defined module that will ask your program name and display
the name of the program.
d) List data types used in python. Explain any two with example.
b) Write a python program takes in a number and find the sum of digits in a number.
c) Write a program function that accepts a string and calculate the number of uppercase letters and
lower case letters.
d) Write a python program to create class student with roll-no and display its contents.
winter 24
d) Write the output for the following if the variable fruit = ‘banana’.
e) Write a Python program to read contents from “a.txt” and write same contents in “b.txt”