Category: Python

Find the vertex, focus, and directrix of a parabola in python

In this python program, we will have a look at how to find the vertex, focus and directrix of a parabola in the Python programming language. Python Program To Find the vertex, focus, and directrix…

Find the most occurring character and its count in Python

In this Python program, we will have a look at How to find the most occurring character and its count in Python programming language. Python program to find the most occurring character and its count…

Find the sum of even factors of a number in Python

In this Python Program, we will have a look at “How to find the sum of even factors of a number in python?”. Python program to find the sum of even factors of a number…

Check if all digits of a number divide it in Python

In this Python program, we will check if all digits of a number divide it or not. Python Program to check if all digits of a number divide it def checkDiv(n, digit) : return (digit…

Convert float decimal to Octal number in Python

In this Python program, we will have a look at “How to convert float decimal to octal number in python?”. Python doesn’t support any inbuilt method to convert the same. Therefore, we need to do…

Convert floating to binary in Python

In this Python program, we will have a look at “How to convert floating point decimal number to binary number?” Python Program to Convert floating to binary def float_bin(number, places = 3): whole, dec =…

Check whether a number has consecutive 0’s in Python

In this Python Program, we will check if the given number has consecutive 0’s . Python Program to check whether a number has a consecutive 0’s #codeatglance python program def result(N, K): z = toK(N,…

Triangular Matchstick Number In Python

This Python program will help you to print the total number of matchstick that is required to form a pyramid of matchsticks of x floors, where X represents the total number of floors. Python Program…

Legendre\’s Conjecture In Python

This Python program will help you to verify Legendre\’s Conjecture. According to Wikipedia “conjecture is a conclusion or proposition based on incomplete information, for which no proof or disproof has yet been found. Conjectures such…

Check if a string contains all unique characters in Python

This Python Program will help you check “if a string contains all unique characters” Python Program To Check If a string contains all unique characters def isUniqueChars(st): if len(st) > 256: return False char_set =…

Shopping cart