Assignment on functions in python


Hello Everyone........!

It's time for an assignment that is based on the chapter 1 function and modules in python.

## Functions in Python ##
1. Try implementing the factorial function using either a “while” loop or a “for” loop. Which do you think is better? Which do you think is easier to understand?

2. Write a function which squares a number and then use it to write a function which takes three integers and returns the sum of their squares.

3. Write a function which prints the natural numbers less than “n” (input value) which are divisible by 3, divisible by 5 but not divisible by 10.

4. Write a Python program to print the even numbers from a given list.

5. Write Recursive function to return GCD of a two numbers.

Best regards from,