Question
THIS CODE WORKS BUT DOESN'TMEET THE REQUIREMENT. (This works, but in part 2, I specifically said to not use split. There are often weird text
THIS CODE WORKS BUT DOESN'TMEET THE REQUIREMENT.
(This works, but in part 2, I specifically said to not use split. There are often weird text manipulations that you have to figure out, with no handy-dandy built-in function to do it. Knowledge of how to use the index and find method is important.)
PLEASE HELP\ME FIX IT WIHTOUT SPLIT
# Get input string from user input_str = input("Please input a string: ")
# Convert vowels to uppercase and other characters to lowercase output_str = "" for char in input_str: if char.lower() in "aeiou": output_str += char.upper() else: output_str += char.lower()
# Print the processed string print("Processed string:", output_str)
# Print each word and its length in the string words = input_str.split() for word in words: print(word, len(word))
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