Python Program To Find Area Of A Right Angled Triangle
Python Program To Find Area Of A Right Angled Triangle The above image is showing the “Pythagoras theorem” where the sum of the “BASE” square and the “PERPENDICULAR” square is …
Python Program To Find Area Of A Right Angled Triangle The above image is showing the “Pythagoras theorem” where the sum of the “BASE” square and the “PERPENDICULAR” square is …
Python Program To Convert Decimal Into Binary Using String Example n=10 def decmialToBinary(N): string = "" while(N>0): a=int(N%2) string += str(a) N = N//2 print(string[::-1]) decmialToBinary(n) Output: 1010
Python Program To Check Three Input Values Representing Right Angled Triangle Or Not The above image is showing the “Pythagoras theorem” where the sum of the “BASE” square and the …
Python Program To Print All ASCII Values Example def printASCIIValues(): for i in range(32,127): print('The Decimal Value ',i,' Has ASCII Value ',chr(i)) printASCIIValues() Output: The Decimal Value 32 Has …
Python Program To Find First Time Of Occurrences Index Of An Element In List Example def firstTimeOccuringIndex(dataArray,N): count = 0 for i in range(0,len(dataArray)): if(dataArray[i] == N): print("{} is First …
Python Program To Find The Total Number Of Occurrences Of An Element In List Example def elementOccuranceData(dataArray,N): count = 0 for i in range(0,len(dataArray)): if(dataArray[i] == N): count+=1 print(“{} is …
Python Program To Find LCM Of Two Numbers Example def lcmCalculation(x, y): greater = max(x,y) while(True): if((greater % x == 0) and (greater % y == 0)): lcm = greater …
Python Program To Display Prime Numbers In A Given Range Example In this tutorial, we are going to find the prime numbers between two given numbers or in a particularly …
Python Program To Remove Duplicates From A List Using For Loop 01. Example Apply on string list. def removeDuplicate(duplicate): data = [] for num in duplicate: if num not …
Python Program To Remove Duplicates From A List Using Dictionary 01. Example Apply on string list. cars = [‘Lamborghini’,’Honda’, ‘Jeep’, ‘Honda’, ‘BMW’,’Hyundai’, ‘Hyundai’, ‘BMW’, ‘Ford’] print(“Array: n”, cars) result …