Python
Python
Q.2) Discuss inheritance in Python programming language. Write a Python program to demonstrate
the use of super() function.
Q.3) Write Python code to find all indices of a substring in the given string.
Q.4) Write python code to demonstrate/perform basic CRUD operations with MongoDB and python.
Q.5) a)What is file? Explain different modes in which file can be open.
b)Write Python code to create a text file and perform read and write operations on it.
Q.6) What is lists? Explain insert, append, extend, remove functions related to list along with example.
Q.7) Write python code to convert the last character of each word in the string touppercase
Q.8) How will you add an index, row or column to a pandas DataFrame? Explain with example.
Q9) a)What is file? Explain different modes in which the file can be opened.
b)Write python code to create a file; and perform read and write operationon it.
Q.10) What is Inheritance? Explain multiple inheritance and multilevel inheritancewith example.
Q.11) What is Numpy array? How to create NumPy array. Explain with example.
Q.12) How to Delete Indices, Rows or Columns From a Pandas Data Frame?
Q.13) Define the different ways a dataframe can be created in Pandas with example.
e) Write a program to find the sum of all Odd and Even numbers up to
a number specified by the user
f) Write
a Python function to check if the input year is leap year or not
k) Write a user defined python function to check whether the given numberis prime or not?
l) Write a python code to create dictionary perform add, remove, popand
update operations on it.
Q-:Very Imp
a) Lambda Function
b) Inheritance
c) Polymorphism
d) Iterator and Generator
e) Multithreading
f) Files
g) MongoDB
h) Pandas
i) Numpy
j) Module
k) Matplotlib
l) If else,for,while