Answered step by step
Verified Expert Solution
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
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
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