0% found this document useful (0 votes)
10 views1 page

Python Programming Assignment II

Uploaded by

karthik.d0104
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views1 page

Python Programming Assignment II

Uploaded by

karthik.d0104
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

GE3151 – PROBLEM-SOLVING AND PYTHON PROGRAMMING

ASSIGNMENT -II

Submission Date: 05/12/2023 Marks: 20

Answer any 10 Questions

(How to write- Algorithm, Flowchart, program and output)

1. Write a recursive algorithm to find the factorial of a given number


2. Write an algorithm to check whether a given number is palindrome or not
3. Write a python script to find the product of two given matrices
4. Write a python script to sort N numbers using insertion sort.
5. Write a python script that calculate the average word length in a single paragraph.
6. Write a python script to toggle the case of the text in an input text file and save the output in
an output text file
7. Write an algorithm to insert a card into a list of sorted cards
8. Write a python code to perform binary search
9. Write a script in python to sort n numbers using selection sort
10. Write a program to exchange the value of 2 variables
11. Write a program using function to find the sum of first ‘n’ even numbers and print the result.
12. Write a program to store ‘n’ numbers in a list and sort the list using selection sort.
13. Write a program to perform linear search on a list.

You might also like