Python Program To Print Fibonacci Series
Python Program To Print Fibonacci Series 01. Method Fibonacci series without using recursion. def fibonacci(n): n1 = 0 n2 = 1 sum = 0 if n == 1: print(“Fibo Series: …
Python Program To Print Fibonacci Series 01. Method Fibonacci series without using recursion. def fibonacci(n): n1 = 0 n2 = 1 sum = 0 if n == 1: print(“Fibo Series: …
Python Program To Sort Array Method-01 Using predefine sort() function def sortArray(array): array.sort() print("Sorted Array: ",array) A = [30, 50, 10, 70, 90, 120] sortArray(A) Output: Sorted Array: [10, 30, …
Truth Table: A1 A0 B1 B0 X(A=B) Y(A>B) Y(A<B) 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0 0 1 0 0 0 …
Interfacing of Soil-Moisture Sensor with Arduino, Blynk, Bluetooth Components Required: Hardware Required: Arduino UNO and Cell-Phone OTG Cable Arduino Cable Soil-Moisture Sensor Sample Soil Bluetooth HC-05 Module Jumper Wires …
Write a python program to calculate Mean using List. def findMean(mList): print(sum(mList)/len(mList)) dataList = [60, 120, 130, 140, 150, 70, 80, 90, 100, 110,111,112] findMean(dataList) Output: 106.08333333333333
As we know how find the circle area mathmatically because in this programing tutorial we are going to use simple maths formula of circle area. Area = 3.14*Radius*Radius It means …
A fundamental task in programming is swapping the values of two variables. In Python, this can be easily accomplished through a simple and concise program. The act of swapping allows …
Method-01 In this method we just use simple mathemtics formulas and operations. As you can see we are finding quotient and remainder of given number. def reverseNumber(N): sum=0 while (N>0): …
Method-01 def sumOfDigits(N): sum=0 while(N>0): D=int(N%10) sum=sum+D N=int(N/10) return sum n =int(input("Enter the number: ")) print("Sum Of Digits: ",sumOfDigits(n)) Output: Enter the number: 89 Sum Of Digits: 17
Python Program To Search An Element In A List Example def searchData(dataArray,N): flag = 1 for i in range(0,len(dataArray)): if(dataArray[i] == N): print("Yes, {} is exits in data.".format(N)) flag = …