Convert Celsius to Fahrenheit in Python

Convert Celsius to Fahrenheit

In this tutorial, we will learn to write a Python program to convert Celsius to Fahrenheit. Celsius and Fahrenheit are two units that are commonly used to measure temperature. Celsius is the standard unit for measuring temperature in most parts of the world, while Fahrenheit is commonly used in the United States. For Example: Input: … Read more

Python Program to Convert Decimal Number into Binary

python program to Convert Decimal Number Into Binary

In computer science, binary code is used to represent numbers, letters, and symbols. Binary Code contains only two distinct digits, 0 and 1. Converting decimal numbers into binary code requires some basic operation. In this post, we will discuss writing a Python program to convert decimal numbers to binary code. The binary number system is … Read more

Python Program to Replace First Vowel With ‘-‘ in String

python program to Replace First Vowel With - In String

In this tutorial, we will learn to write a Python program to replace the first occurrence of a vowel with a hyphen (‘-‘) in a given string. Suppose if some given input is “ram” then the output will look like “r-m”. For Example: Program to Replace first occurrence of Vowel with ‘-‘ in String In … Read more

Python Program to find Prime factors of given integer

python program to Find Prime Factors Of Given Integer

In this tutorial, you will learn to write a Python program to find the Prime factors of a given input integer. Prime factorization is a mathematical process of breaking down a number into its prime factors. We can also say that it is a representation of a composite number as a product of its prime … Read more

Python Program to Print Prime Number in given range

python program to Print Prime Number In Given Range

In this tutorial, we will be learning to write Python program to Print prime numbers in a given range. A prime number is a number that is divisible only by 1 and itself. In this post we will discuss multiple approaches to write a Python program to print all prime numbers in a given range. … Read more

Python Program to find top two maximum number in array

find top two maximum number in array

In this tutorial, you will learn how to write Python program to find the first top two largest/maximum element in python. To find two maximum number in python, first we will sort our array in ascending order (you can also implement it by sorting in descending order). Now select last two distinct element which will … Read more

Python program to find all non repeating characters in the string

python program to Find All Non Repeating Characters In The String

In this tutorial, we will learn writing the python program to print all characters of the string which are not repeating. We can say the character are available only one time in string. Problem Statement Take any string as an input from the user and check if any character in the string is repeating or … Read more

Replace string space with given character in Python

Replace string space with given character

In this tutorial we are going to learn writing python program to replace the string space with given character. Problem Statement For a given string we have to replace all the spaces with the character given by the user as an input. For example: Our logic to replace a string with given character Algorithm to … Read more

Python program to check given character is vowel or consonant

Check Given Character Is Vowel Or Consonant in python

In this tutorial we are going to learn writing python program to check given character is a vowel ( a, e, i, o, u) or any other alphabet other than vowels(consonant) . Problem statement For any input character, we have to check whether a character is a vowel or consonant. For example: Our logic to … Read more