PYTHON ASSIGNMENT 8: FUNCTIONS



Check if a given number is even or odd

Find sum of two numbers

Swap two numbers

Biggest of three numbers

Find GCD of two numbers

Find distance between two points

Find square root of a number using Newton’s method

Check if a given number is an Armstrong number

Check if a given number is a prime number

Number manipulation
Number of digits
Sum of digits
Reverse of a number

Factorial of a number using (1) iteration and (2) recursion

Fibonacci series up to (1) a given limit and (2) number of terms

List
Sum of elements
Average of all numbers
Biggest element
Smallest element

Read two lists and merge without duplicates

Matrix Manipulation
Addition
Subtraction
Multiplication
Sum of diagonal element
Transpose of a matrix

No comments:

Post a Comment

Don't be a silent reader...
Leave your comments...

Anu