### Program for Tower of Hanoi using Python

8 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

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

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

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

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

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

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

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

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

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

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