Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Python help!! Write a Python program named labprep3.py that includes 3 functions, main,twist) and stats ) The main) function prompts the user for a text
Python help!!
Write a Python program named labprep3.py that includes 3 functions, main,twist) and stats ) The main) function prompts the user for a text message, assigns the input to a String and then calls the twist and stats functions providing the String as an argument Using Python's String methods, the twist) and statsfunctions perform the following tasks: The twist function displays several variations of the String provided The first letter of each word in the String is capitalized The String in ALL CAPITAL characters Every other character in all lower case characters ( ' Boiler Up ! ' ' bie p ' ) * ' ('Boiler Up ! 'PU-RELIOB ' ) The stats function displays statistics about the String provided The number of spaces in the string The number of words in the string The number of vowels in the string (A, E, I, O and U regardless of capitalization)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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