Question: QUESTIONS Q 1 . Create a Python function that removes all punctuation characters from a given string. The function should prompt the user to enter
QUESTIONS
QCreate a Python function that removes all punctuation characters from a given string. The function should prompt the user to enter a string, remove all punctuation characters such as etc. and return the cleaned string.
QDevelop a Python function that checks if a given string is a palindrome. The function should prompt the user to input a string, determine whether it is a palindrome reads the same forwards and backwards and return True or False accordingly.
QWrite a Python function that calculates the length of each word in a given string entered by the user and returns these lengths as a list. The function should prompt the user to enter a string, calculate the lengths of the words, and return them as a list.
Q Write a Python function that converts uppercase letters to lowercase and lowercase letters to uppercase in a given string. The function should prompt the user to enter a string, convert uppercase letters to lowercase, and lowercase letters to uppercase.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
