python-dev(25)•in #python-dev•2203 days agoPython Program to Sort Words in Alphabetic OrderProgram to sort alphabetically the words form a string provided by the user mystr = "Hello this Is an Example With cased letters" To take input from the user my...42$0.23python-dev(25)•in python-dev•2203 days agoPython Program to Sort Words in Alphabetic OrderProgram to sort alphabetically the words form a string provided by the user mystr = "Hello this Is an Example With cased letters" To take input from the user my...42$0.23
python-dev(25)•in #python-dev•2203 days agoPython Program to Check Whether a String is Palindrome or NotProgram to check if a string is palindrome or not mystr = 'aIbohPhoBiA' make it suitable for caseless comparison mystr = mystr.casefold() reverse the string rev...31$0.20python-dev(25)•in python-dev•2203 days agoPython Program to Check Whether a String is Palindrome or NotProgram to check if a string is palindrome or not mystr = 'aIbohPhoBiA' make it suitable for caseless comparison mystr = mystr.casefold() reverse the string rev...31$0.20
python-dev(25)•in #python-dev•2203 days agoPython Program to Multiply Two MatricesProgram to multiply two matrices using nested loops 3x3 matrix X = [[12,7,3], [4 ,5,6], [7 ,8,9]] 3x4 matrix Y = [[5,8,1,2], [6,7,3,0], [4,5,9,1]] result is 3x4...41$0.14python-dev(25)•in python-dev•2203 days agoPython Program to Multiply Two MatricesProgram to multiply two matrices using nested loops 3x3 matrix X = [[12,7,3], [4 ,5,6], [7 ,8,9]] 3x4 matrix Y = [[5,8,1,2], [6,7,3,0], [4,5,9,1]] result is 3x4...41$0.14
python-dev(25)•in #python-dev•2203 days agoPython Program to Transpose a MatrixProgram to transpose a matrix using a nested loop X = [[12,7], [4 ,5], [3 ,8]] result = [[0,0,0], [0,0,0]] iterate through rows for i in range(len(X)): iterate ...41$0.23python-dev(25)•in python-dev•2203 days agoPython Program to Transpose a MatrixProgram to transpose a matrix using a nested loop X = [[12,7], [4 ,5], [3 ,8]] result = [[0,0,0], [0,0,0]] iterate through rows for i in range(len(X)): iterate ...41$0.23
python-dev(25)•in #python-dev•2203 days agoPython Program to Add Two MatricesProgram to add two matrices using nested loop X = [[12,7,3], [4 ,5,6], [7 ,8,9]] Y = [[5,8,1], [6,7,3], [4,5,9]] result = [[0,0,0], [0,0,0], [0,0,0]] iterate th...32$0.22python-dev(25)•in python-dev•2203 days agoPython Program to Add Two MatricesProgram to add two matrices using nested loop X = [[12,7,3], [4 ,5,6], [7 ,8,9]] Y = [[5,8,1], [6,7,3], [4,5,9]] result = [[0,0,0], [0,0,0], [0,0,0]] iterate th...32$0.22
python-dev(25)•in #python-dev•2203 days agoPython Program to Display Fibonacci Sequence Using RecursionPython program to display the Fibonacci sequence def recurfibo(n): if n <= 1: return n else: return(recurfibo(n-1) + recurfibo(n-2)) nterms = 10 check if the nu...31$0.20python-dev(25)•in python-dev•2203 days agoPython Program to Display Fibonacci Sequence Using RecursionPython program to display the Fibonacci sequence def recurfibo(n): if n <= 1: return n else: return(recurfibo(n-1) + recurfibo(n-2)) nterms = 10 check if the nu...31$0.20
python-dev(25)•in #python-dev•2203 days agoPython Program to Display CalendarProgram to display calendar of the given month and year importing calendar module import calendar yy = 2014 year mm = 11 month To take month and year input from...32$0.25python-dev(25)•in python-dev•2203 days agoPython Program to Display CalendarProgram to display calendar of the given month and year importing calendar module import calendar yy = 2014 year mm = 11 month To take month and year input from...32$0.25
python-dev(25)•in #python-dev•2203 days agoPython Program to Shuffle Deck of CardsPython program to shuffle a deck of card importing modules import itertools, random make a deck of cards deck = list(itertools.product(range(1,14),['Spade','Hea...22$0.22python-dev(25)•in python-dev•2203 days agoPython Program to Shuffle Deck of CardsPython program to shuffle a deck of card importing modules import itertools, random make a deck of cards deck = list(itertools.product(range(1,14),['Spade','Hea...22$0.22
python-dev(25)•in #python-dev•2203 days agoPython Program to Make a Simple CalculatorProgram make a simple calculator This function adds two numbers def add(x, y): return x + y This function subtracts two numbers def subtract(x, y): return x - y...22$0.22python-dev(25)•in python-dev•2203 days agoPython Program to Make a Simple CalculatorProgram make a simple calculator This function adds two numbers def add(x, y): return x + y This function subtracts two numbers def subtract(x, y): return x - y...22$0.22
python-dev(25)•in #python-dev•2203 days agoPython Program to Find the Factors of a NumberPython Program to find the factors of a number This function computes the factor of the argument passed def printfactors(x): print("The factors of",x,"are:") fo...20$0.23python-dev(25)•in python-dev•2203 days agoPython Program to Find the Factors of a NumberPython Program to find the factors of a number This function computes the factor of the argument passed def printfactors(x): print("The factors of",x,"are:") fo...20$0.23
python-dev(25)•in #python-dev•2203 days agoPython Program to Find LCMPython Program to find the L.C.M. of two input number def computelcm(x, y): choose the greater number if x > y: greater = x else: greater = y while(True): if((g...20$0.23python-dev(25)•in python-dev•2203 days agoPython Program to Find LCMPython Program to find the L.C.M. of two input number def computelcm(x, y): choose the greater number if x > y: greater = x else: greater = y while(True): if((g...20$0.23
python-dev(25)•in #python-dev•2203 days agoPython Program to Find HCF or GCDPython program to find H.C.F of two numbers define a function def computehcf(x, y): choose the smaller number if x > y: smaller = y else: smaller = x for i in r...20$0.23python-dev(25)•in python-dev•2203 days agoPython Program to Find HCF or GCDPython program to find H.C.F of two numbers define a function def computehcf(x, y): choose the smaller number if x > y: smaller = y else: smaller = x for i in r...20$0.23
python-dev(25)•in #python-dev•2203 days agoPython Program to Find ASCII Value of CharacterProgram to find the ASCII value of the given character c = 'p' print("The ASCII value of '" + c + "' is", ord(c))...20$0.24python-dev(25)•in python-dev•2203 days agoPython Program to Find ASCII Value of CharacterProgram to find the ASCII value of the given character c = 'p' print("The ASCII value of '" + c + "' is", ord(c))...20$0.24
python-dev(25)•in #python-dev•2203 days agoPython Program to Convert Decimal to Binary, Octal and HexadecimalPython program to convert decimal into other number systems dec = 344 print("The decimal value of", dec, "is:") print(bin(dec), "in binary.") print(oct(dec), "i...20$0.24python-dev(25)•in python-dev•2203 days agoPython Program to Convert Decimal to Binary, Octal and HexadecimalPython program to convert decimal into other number systems dec = 344 print("The decimal value of", dec, "is:") print(bin(dec), "in binary.") print(oct(dec), "i...20$0.24
python-dev(25)•in #python-dev•2203 days agoPython Program to Find Numbers Divisible by Another NumberTake a list of numbers mylist = [12, 65, 54, 39, 102, 339, 221,] use anonymous function to filter result = list(filter(lambda x: (x % 13 == 0), mylist)) display...20$0.24python-dev(25)•in python-dev•2203 days agoPython Program to Find Numbers Divisible by Another NumberTake a list of numbers mylist = [12, 65, 54, 39, 102, 339, 221,] use anonymous function to filter result = list(filter(lambda x: (x % 13 == 0), mylist)) display...20$0.24
python-dev(25)•in #python-dev•2203 days agoPython Program to Find Armstrong Number in an IntervalProgram to check Armstrong numbers in a certain interval lower = 100 upper = 2000 for num in range(lower, upper + 1): order of number order = len(str(num)) init...20$0.25python-dev(25)•in python-dev•2203 days agoPython Program to Find Armstrong Number in an IntervalProgram to check Armstrong numbers in a certain interval lower = 100 upper = 2000 for num in range(lower, upper + 1): order of number order = len(str(num)) init...20$0.25
python-dev(25)•in #python-dev•2203 days agoPython Program to Check Armstrong NumberPython program to check if the number is an Armstrong number or not take input from the user num = int(input("Enter a number: ")) initialize sum sum = 0 find th...20$0.25python-dev(25)•in python-dev•2203 days agoPython Program to Check Armstrong NumberPython program to check if the number is an Armstrong number or not take input from the user num = int(input("Enter a number: ")) initialize sum sum = 0 find th...20$0.25
python-dev(25)•in #python-dev•2203 days agoPython Program to Print the Fibonacci sequenceProgram to display the Fibonacci sequence up to n-th term nterms = int(input("How many terms? ")) first two terms n1, n2 = 0, 1 count = 0 check if the number of...30$0.26python-dev(25)•in python-dev•2203 days agoPython Program to Print the Fibonacci sequenceProgram to display the Fibonacci sequence up to n-th term nterms = int(input("How many terms? ")) first two terms n1, n2 = 0, 1 count = 0 check if the number of...30$0.26
python-dev(25)•in #python-dev•2203 days agoPython Program to Display the multiplication TableMultiplication table (from 1 to 10) in Python num = 12 To take input from the user num = int(input("Display multiplication table of? ")) Iterate 10 times from i...31$0.26python-dev(25)•in python-dev•2203 days agoPython Program to Display the multiplication TableMultiplication table (from 1 to 10) in Python num = 12 To take input from the user num = int(input("Display multiplication table of? ")) Iterate 10 times from i...31$0.26
python-dev(25)•in #python-dev•2203 days agoPython Program to Find the Factorial of a NumberPython program to find the factorial of a number provided by the user. change the value for a different result num = 7 To take input from the user num = int(inp...31$0.13python-dev(25)•in python-dev•2203 days agoPython Program to Find the Factorial of a NumberPython program to find the factorial of a number provided by the user. change the value for a different result num = 7 To take input from the user num = int(inp...31$0.13