### Python program for coin change using Python

Introduction The task is to find the number of ways we can make the change of given N cents having infinite supply of Coins = { […]

July 19, 2021 Python Programs Barry Allen

Introduction The task is to find the number of ways we can make the change of given N cents having infinite supply of Coins = { […]

Introduction Given a number N, the task is to find whether there is consecutive 0’s on converting it to base B. Program def find(ip_num, ip_base): […]

Introduction The task is to check whether all the digits of number N divides it. Program def check(ip_num, i) : return (i != 0 and […]

Introduction The task is to find whether a triangle of positive area can be constructed from the given angles. Program def check(angle1, angle2, angle3): #None of […]

Introduction The task is to check whether the binary representation of the given number is palindrome or not. Program def check(ip_num): # Convert the given number […]

Introduction The task is to find the greatest common divisor (GCD) of two given numbers. Program def find(num1, num2): if num1 == 0 : return […]

Introduction The task is to create a tuple from the given tuple with the first elements as the number and second element as its cube values. […]

Introduction The task is to sort the given list of elements by second item. In this article we will discuss different ways of sorting in python. […]

Introduction The task is to find the size of tuple i.e. the memory size (in bytes) occupied by the tuple objects. Program Approach 1 import sys […]

Introduction The task is to find and remove the K length tuple. Program Approach 1 ip_list = [ (2, ), (1, 6), (1, ), […]

Translate »