Question
1. Write a function that takes in a list of integers and returns a new list where each element is the result of multiplying the
1. Write a function that takes in a list of integers and returns a new list where each element is the result of multiplying the corresponding element in the input list by its index in the list (i.e. the first element in the output list should be the result of multiplying the first element in the input list by its index, the second element in the output list should be the result of multiplying the second element in the input list by its index, and so on). For example, if the input list is [2, 4, 6], the output list should be [0, 4, 12].
2. Write a function that takes in a string and returns a new string where all the vowels in the input string are replaced with the character ''. The function should be case-insensitive, so it should replace both upper and lower case vowels. For example, if the input string is "Hello World!", the output string should be "Hll* W*rld!".
Step by Step Solution
3.47 Rating (157 Votes )
There are 3 Steps involved in it
Step: 1
The detailed ...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 StartedRecommended Textbook for
Introduction To Computing And Programming In Python A Multimedia Approach
Authors: Mark J. Guzdial, Barbara Ericson
4th Edition
0134025547, 978-0134025544
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App