In: Computer Science
Python: Using Jupyter Notebook
1. Write code to generate Fibonacci series.
Fibonacci numbers – 1, 1, 2, 3, 5, 8, …
2. Check if a number is an Armstrong number
A positive integer is called an Armstrong number of order n if
abcd... = a^n + b^n + c^n + d^n + ...
In case of an Armstrong number of 3 digits, the sum of cubes of each digits is equal to the number itself. For example:
153 = 1*1*1 + 5*5*5 + 3*3*3 // 153 is an Armstrong number.
3. define and use a function that determines the area of a triangle given the height and the base
4. For the following array
A = [[1, 4, 5, 12],
[-5, 8, 9, 0],
[-6, 7, 11, 19]]
Calculate the row sums and column sums
1 ans:
2 ans:
3 ans:
4 ans:
#if you have any doubt or more information needed comment below..i will respond as possible as soon..thanks...