Level: intermediate
Question: Write a Python program to change a given string to a new string where the first and last characters have been exchanged.
Solution:
Coming Soon....
More Problems
Write a Python program to remove characters that have odd index values in a given string.
Write a Python program to count the occurrences of each word in a given sentence.
Write a Python program to capitalize the first and last letters of each word in a string.
Write a Python program to compute the sum of the digits in a given string.
Write a Python program to add 'ing' at the end of a given string (length should be at least 3). If the given string already ends with 'ing' then add 'ly' instead.