Answered step by step
Verified Expert Solution
Link Copied!

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
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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learn Mysql The Easy Way A Beginner Friendly Guide

Authors: Kiet Huynh

1st Edition

B0CNY7143T, 979-8869761545

More Books

Students also viewed these Databases questions

Question

Employers must pay employees for a 3 0 minute lunch break?

Answered: 1 week ago