Python program to Count alphabets, digits, special char in string

python program to Count Alphabets, Digits, Special Char In String

In this tutorial, we are going to learn python program to count the number of alphabets, digits, and special characters present in an input string from the user. Problem Statement For any input string, we are going to print the number of alphabets (‘a’-‘z’ and ‘A’-‘Z’), the number of digits(0-9), and the number of special … Read more

Python program to remove spaces from string without inbuilt function

remove spaces from string without inbuilt function

In this tutorial, we are going to learn writing a python program to remove all the blank spaces present between the string given by the user. In this program we are not going to use any python inbuilt functions like isalpha(). Problem Statement For any input string, we have to check for the blank space … Read more

Remove the blank spaces from string using isalpha() in Python

Python program to remove all the blank spaces in a given string using isaplha()

In this tutorial, we are going to learn writing the python program to remove all the blank spaces from the string given by the user using the isalpha() python method Problem Statement For any input string, we have to check for the blank space and then remove it. For example: Our logic to remove all … Read more

Python program to check two strings are equal or not

Python program to check if two strings are the same(case sensitivity)

In this tutorial, we are going to learn writing a python program to check if two given strings given input by the user are the same or not. Problem Statement For any two input strings, we have to check if strings are same or not. For example: Our logic to check if two strings are … Read more

Python Program to Convert lowercase to uppercase character

python program to Convert Lowercase To Uppercase Character

In this tutorial, we are going to learn writing a python program to convert lowercase characters (alphabet) into uppercase characters (alphabet). Problem Statement For any input string, any lowercase character used in input string will be replaced with uppercase character of same alphabet as lowercase character. For example: Our logic to convert lowercase character to … Read more

Python program to convert vowel to uppercase in string

Python program to convert vowel to uppercase character

In this tutorial, we are going to learn writing python program to convert vowels (‘a’, ‘e’, ‘i’, ‘o’, ‘u’) with their respective uppercase. Problem Statement For any input as a string from the user, we have to convert all the vowels present in the string with their respective uppercases. For example: Our logic to convert … Read more

Python program to remove vowels from the string

Remove Vowels From The String in python

In this tutorial, we are going to learn writing python program to remove all vowels present in the string. Problem Statement For any input string, we have to check whether the string contains vowels or not, if it does then remove the vowels and print the output. For example: Our logic to remove vowels from … Read more

Python Program to count Vowels and Consonants in String

python program to Count Vowels And Consonants In String

In this tutorial, we are going to learn writing python programming to count the number of vowels (‘a’, ‘e’, ‘i’, ‘o’, ‘u’) and consonants (any alphabet other than vowels) in a string. Problem Statement For any input string, we have to count the number of vowels that appear and the number of consonants that appear. … Read more

Python program to print odd numbers from array (list)

python program to Print Odd Numbers From Array (List)

In this tutorial, we will learn writing program in Python to create an array (list in case of python) and print the odd elements stored in the array (list). Problem Statement Our program will first take the input of array (list) size and then the elements of the array (list) from the user. And then … Read more

Perform right rotation on array by two positions in Python

C Program To Perform Right Rotation In Array By Two Positions

In this tutorial, we will learn to create an array (list in case of python) and rotate the elements stored in the array (list) by two positions using python.  That means if our array (list) is: After two rotations: Problem Statement Our program will first take the input of array (list) size and then the … Read more