Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started