### Program for Tower of Hanoi using Python

64 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

64 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 […]

18 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) […]

38 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 […]

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

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

21 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 […]

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

50 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 […]

41 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): […]

41 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 »