### Program for Tower of Hanoi using Python

91 Introduction The task is to solve Tower of Hanoi problem using python programming. There are set of rules to follow while solving the problem: At […]

August 16, 2021 Python Programs Barry Allen

91 Introduction The task is to solve Tower of Hanoi problem using python programming. There are set of rules to follow while solving the problem: At […]

29 Introduction The task to find and print the smallest M digit number divisible by N. Program def result(n, m): x = pow(10, m-1) […]

58 Introduction The task is to print the product of unique prime factors of the given number. Program def find(ip_num): # Initializing product with 1 […]

106 Introduction The task is to print all the prime numbers smaller than or equal to the given number n (given n must be small). […]

40 Introduction Given a matrix of size n*n, the task is to print the elements in Z form. Program ip_array = [[1, 2, 3], […]

33 Introduction The task is to find the number of ways we can stop the train at K stations out of N stations between S1 and […]

148 Introduction The task is to find the frequent occurred character in the given string with it occurrence number. Program from collections import Counter def […]

72 Introduction The task is to find the minimum sum of factors of the given number. Program def find(ip_no): # Initilize sum with 0 output_sum […]

74 Introduction Given N number of coins, the task is to construct a triangle of maximum height H and print the max height. Program def sq_root(val): […]

57 Introduction There is always one prime between n2 and (n+1)2 . The task is to print all the prime number between the range n2 to […]

Translate »