Write a Python program to reverse a string.
Python Program to Check if a String is Palindrome or Not
Write a Python program to count the number of characters (character frequency) in a string. Sample String: google.com'
Expected Result : {'g': 2, 'o': 3, 'l': 1, 'e': 1, '.': 1, 'c': 1, 'm': 1}
Write a Python program to get a string made of the first 2 and last 2 characters of a given string. Sample String : 'codekadose'
Expected Result : 'cose'
Write a Python function that takes a list of words and return the longest word and the length of the longest one.
Write a Python program to count the occurrences of each word in a given sentence.
Write a Python script that takes input from the user and displays that input back in upper and lower cases.
Write a Python program to remove duplicate words from a given string.
Write a function that takes two strings as input and determines if they are anagrams of each other. Anagrams are words or phrases formed by rearranging the letters of another.