Python Program to Remove Repeated Character from String

python program to Remove Repeated Character From String

In Python, strings are one of the most commonly used data types, and it is quite common to come across a situation where we need to remove repeated characters from a string. In this post, we will learn the different approaches to remove repeated characters from a given string in Python. For Examples Method 1: … Read more

Python Program to Convert lowercase vowel to uppercase

python program to Convert Lowercase Vowel To Uppercase

In this Python program tutorial, we will learn to write a program to convert lowercase vowels to uppercase in a given string. We will a String from users as input and check each character in the string. If the character is a lowercase vowel, we will convert it to uppercase. When we checked all characters … 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

H.C.F. or G.C.D. Of Two Number Program in Java

H.C.F. Or G.C.D. Of Two Number Program in java

In this tutorial, we are going to learn writing java program to calculate the Highest Common Factor of two numbers. Our program will take two numbers as the inputs given by the user and returns the h.c.f. of given numbers. For example, for the inputs of the two numbers 4 and 6. Our program will … Read more