Category Archives: Python String Programs

Python Program to convert string to Opposite case

Task: Write a Python Program to convert string to Opposite case. This Python programming tutorial will input a string and convert its letters to opposite case. It means that if this Python code will find a lower case letter, it will convert it into upper case and vice versa. For example, it will convert the… Read More »

Python Program to Convert String to Upper Case

Task: Write a Python Program to  Convert a given String to Upper Case. The Source Code of Python Program to Convert String to Upper Case # Write a Python program to # input a string and change into # upper case # The user will enter String # during program execution # author: www.EasyCodeBook.com #… Read More »

Palindrome Program in Python

Task: Write a Python program to input a string and check it for Palindrome or not. The source code of Palindrome Program in Python # Write a Python program to input # a string and check it for Palindrome # Author: www.EasyCodeBook.com s1=input(“Enter string to check for Palindrome:”) # get reversed string by string slicing… Read More »