Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I'm having trouble with this lab that uses python. CMPSC-122: Intermediate Programming Summer 2018 Lab #15 Due Date: 07/27/2018, 11:59PM EST Instructions: The work in
I'm having trouble with this lab that uses python.
CMPSC-122: Intermediate Programming Summer 2018 Lab #15 Due Date: 07/27/2018, 11:59PM EST Instructions: The work in this lab must be completed alone and must be your own. Do not copy code from online sources. That is considered plagiarism. Use the starter code provided on this CANVAS assignment. Do not change the function names or given started code on your script The file name must be LAB15.py (incorrect name files will get a 1 point deduction) A doctest is provided as an example of code functionality. Getting the same result as the doctest does not guarantee full credit. You are responsible for testing your code with enough data as possible Each function must return the output (Do not use print in your final submission otherwise, you will get a 1 pt deduction) Do not include test code outside any function in the upload. Remove all your testing code before uploading your file. Do not include the input function in your submission. Goal [10 pts] Write the function makingSound(n,sound) that takes a positive integer number n and a string and returns a function that takes in a positive integer number k which will return a list with all numbers from 0 to k-1 but adding the string sound instead for all the numbers that are divisible EXAMPLE >>catSound-makingSound (6, 'Meow) >>catsound (10) I'Meow', 1, 2, 3, 4, 5, Meo, 7, 8,9] >>makingSound (6, 'Meow) (10) ['Meow*, 1, 2, 3, 4, 5, Meow, 7, 8, 9]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