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

Python

The document outlines a series of Python programming tasks, each requiring the use of functions to perform specific operations. These tasks include generating Fibonacci numbers, calculating factorials and sums, computing interest, analyzing text files, and implementing various sorting and searching algorithms. Additionally, it includes programs for managing stack and queue data structures.

Uploaded by

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

Python

The document outlines a series of Python programming tasks, each requiring the use of functions to perform specific operations. These tasks include generating Fibonacci numbers, calculating factorials and sums, computing interest, analyzing text files, and implementing various sorting and searching algorithms. Additionally, it includes programs for managing stack and queue data structures.

Uploaded by

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

A1. Write a python program using a function to print n Fibonacci numbers.

A2. Write a menu driven program in python to find factorial and sum of natural of n
Numbers using function.

A3. Write a python program using user defined function to calculate interest amount using
simple interest method and compound interest method and find the difference of interest
amount between the two methods.

A4. Write a Python Program to create a text file and to read a text file and display the
number of vowels, consonants, uppercase and lowercase characters in the file.

A5. Write a python code to find the number of lines, number of words and number of
characters in a text file.

A8. Write a python program using function to sort the elements of a list using bubble sort
method.

A9. Write a python program using function to sort the elements of a list using selection sort
method.

A10. Write a python program using function to sort the elements of a list using insertion sort
method.

A11. Write a python program using function to search an element in a list using linear search
method.

A12. Write a python program using function to search an element in a list using binary
search method.

A13. Write a python program to add and display elements from a stack using list.

A14. Write a python program to add and display elements from a queue using list.

You might also like