Python Program To Print Hello World!
Python Program To Print Hello World! This is very first program of every newbie in the programming field. It means how to show/display the string on the monitor. So let’s …
Python Program To Print Hello World! This is very first program of every newbie in the programming field. It means how to show/display the string on the monitor. So let’s …
Python Program To Find Sum Of Arithmetic Progression Series Everybody know about the “Arithmetic Progression Series” that is usually asked very frequently in maths subjects. So there are many popular questions …
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, …
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 = …