Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. Implement the function letterfinder() that takes in a number and a character as parameters. The function will repeat asking the user to enter

image text in transcribedimage text in transcribed

3. Implement the function letterfinder() that takes in a number and a character as parameters. The function will repeat asking the user to enter n count of words and collect all the words the user enters that have the letter in them. The function will return a list of all the words a user enters that have the character specified by the second parameter in them. Case needs to be ignored. The information below shows how you would call the function letterfinder () and what it would display for a few different inputs: |words=letterfinder (4, 'b') Looking for letter: b Please enter a word: BOY Please enter a word: Bank Please enter a word: bland Please enter a word: CAT words ['BOY', 'Bank', 'bland'] words=letterfinder (4,'C') Looking for letter: C Please enter a word: cat Please enter a word: COPY Please enter a word: snack Please enter a word: dog words words ['cat', 'COPY', 'snack'] words=letterfinder (3,'z') Looking for letter: Z Please enter a word: day Please enter a word: PLAY Please enter a word: zoo words ['zoo']

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Managerial Accounting

Authors: John J. Wild, Ken W. Shaw

2010 Edition

9789813155497, 73379581, 9813155493, 978-0073379586

Students also viewed these Algorithms questions