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
Q1.Create 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.
Q2.Develop 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.
Q3.Write 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.
Q4. 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.
 QUESTIONS Q1.Create a Python function that removes all punctuation characters from

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!