Question: In python 3 Write program to ask the user to enter a string of characters and find it's length. Then provide following info about this
Write a program to ask the user to enter a string of characters and find its length. Then provide the following information about this string 1) a. Print the uppercase letters (if any) in the string Print every 2 character in the string c. Print the string with all vowels replaced by an underscore and count/print the number of vowels The following code can be used to get the initial string from the user and determine its length. userstringinput ("Enter a string: strLength len (userstring) NOTE: The user of the "end" manipulator will be necessary for printing For example: Input by the user is indicated by text that is bold, underlined& italicized NOTE: It will not be bold, underlined, and italicized when you run your program prin t (users tring [ i ] , end- ) 2) Sample Run Enter a string: This a String w1th SQMe Crazy ChArgcteRs 1n 1T Uppercase Letters: TISSMCYCART Every 2nd Letter: owels Replaced with'Th Count of Vowels: Str ng with sOM Cr zY ch rect Rs 1n 1T
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
