Problem Solving Using Computers Lab Practice Assignment 2
Problem Solving Using Computers Lab Practice Assignment 2
07.12.2021
Q7. Write a program in Python that accepts a character. If the character is an uppercase letter, the
function returns the next consecutive letter of the alphabet. If the character is a lowercase letter,
the function returns the previous consecutive letter of the alphabet. If the character is not a letter,
the function returns the question mark ('?') character and a message "Character not
found in the alphabet", is printed as output.