0% found this document useful (0 votes)
46 views2 pages

Function and Recursion Exercises

The document provides a list of programming exercises focused on functions and recursion in Python. It includes tasks such as calculating the cube of a number, finding properties of circles, checking for prime numbers, and using recursion for operations like calculating factorials and generating Fibonacci terms. Each exercise is designed to enhance understanding of function and recursion concepts in programming.
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)
46 views2 pages

Function and Recursion Exercises

The document provides a list of programming exercises focused on functions and recursion in Python. It includes tasks such as calculating the cube of a number, finding properties of circles, checking for prime numbers, and using recursion for operations like calculating factorials and generating Fibonacci terms. Each exercise is designed to enhance understanding of function and recursion concepts in programming.
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
You are on page 1/ 2

List of function and recursion

programming exercises

1. Write a python program to find cube of any number using function.

2. Write a python program to find diameter, circumference and area of circle using functions.

3. Write a python program to find maximum and minimum between two numbers using
functions.

4. Write a python program to check whether a number is even or odd using functions.

5. Write a python program to check whether a number is prime, Armstrong or perfect number
using-functions

6. Write a python program to find all prime numbers between given interval using functions.

7. Write a python program to print all strong numbers between given interval using functions.

8. Write a python program to print all Armstrong numbers between given interval using
functions.

9. Write a python program to print all perfect numbers between given interval using
functions.

10. Write a python program to find power of any number using recursion.

11. Write a python program to print all natural numbers between 1 to n using recursion.

12. Write a python program to print all even or odd numbers in given range using recursion.

13. Write a python program to find sum of all natural numbers between 1 to n using recursion.
14. Write a python program to find sum of all even or odd numbers in given range using
recursion.

15. Write a python program to find reverse of any number using recursion.

16. Write a python program to check whether a number is palindrome or not using recursion.

17. Write a python program to find sum of digits of a given number using recursion.

18. Write a python program to find factorial of any number using recursion.

19. Write a python program to generate nth Fibonacci term using recursion.

20. Write a python program to find GCD (HCF) of two numbers using recursion.

21. Write a python to find LCM of two numbers using recursion.

22. Write a python program to display all array elements using recursion.

23. Write a python program to find sum of elements of array using recursion.

24. Write a python program to find maximum and minimum elements in array using recursion.

You might also like