Professional Documents
Culture Documents
MC4112 Set1
MC4112 Set1
MC4112 Set1
1. (i) Write a python program to exchange the values of two variables without using third variable.
(ii) write a python program to validate the mark range using exception handling.
3. (i) Write a python program to find the distance between two points.
4. (i) Write a python program to exchange the values of two variables without using third variable.
5. (i) Write a python program to copy the content from one file to another .
6. (i) Write a python program to find the sum the series.1+1/x+1/x2 +1/x3+…………………+n
(ii) write a python program to display the student details using class.
Page 1 of 3
ii. To remove the elements from the list.
(ii) Write a Python program to find the factorial of given number using recursion.
8. (i) Write a Python program to check whether the given number is even or odd.
(ii) Write a program that inputs a text file. The program should print all of the unique words in
9. (i) Write a python program to count the number of vowels and consonants in the string.
(ii) Implementing programs using written modules and Python Standard Libraries
(pandas, numpy.
10. (i) Write a python program to find the GCD of two numbers.
(ii) Write a python program to check the given string is palindrome or not.
i. To create a dictionary
(ii) Write a Python program to find maximum and minimum number in a list.
(ii) write a python program to count the number of lines, words, characters in a file
13. (i) Write a python program to construct the following pattern using nested for loop
Page 2 of 3
(ii) write a python program to read n names and sort names in alphabetic order.
14. (i) Write a python program to find the biggest among three numbers .
(ii) Using exception handling write a python program to check the person is eligible to
vote or not.
15. (i) Write a python program to reads a positive integer and then prints all the positive divisor
of that number.
(ii) write a python program to implement zero division error using exception handling.
(ii) Write a Python program to find the most frequent words in a text read from a file.
19. (i) Write a python program to find the biggest among three numbers.
20. (i) Write a python program to find the sum of first n even numbers.
Page 3 of 3