Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem Write a recursive function called filter _ string that takes a string as a parameter. Return a string that filters out characters that are

Problem
Write a recursive function called filter_string that takes a string
as a parameter. Return a string that filters out characters that
are vowels.
Hint
Expected Output
If you test your function with the following code:
# test code below
if?(())name??==?(())main??:
exampleword = 'transpoRTATION'
print(filterstring(exampleword))
It should produce the output:
What does if _=="_": mean?
If you test your function with the following code:
# test code below
if?(())name??==?(())main??:
exampleword = 'AppLe'
print(filterstring(exampleword))
It should produce the output:
Use the Playground below to check your code. Click the
Submit button to evaluate your work.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions