Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Name of Function FirstLettersk] Unit Test Key Questions Features [description of what your unit does}: Inputs [what does your unit take as inputr think of
Name of Function FirstLettersk] Unit Test Key Questions Features [description of what your unit does}: Inputs [what does your unit take as inputr think of all details}: I List of strings I Results {description of what the result can be): I List of strings I Firstflast letters I Test Data Sets Description List with string wg' multiple words Input ["Daniel\Name of Function getUIDName() Unit Test Key Questions Features (description of what your unit does): . My function extracts the username or UID from a given email address Inputs (what does your unit take as input, think of all details): Any valid email address as a string Can be a UMD email address or other Can include numbers in the username Results (description of what the result can be): . A string including the associated username based on the email address Test Data Sets Description Input Result UMD email address clindema@umd.edu clindema Terpmail address terrapin@terpmail.umd.edu terrapin General GMail address college@gmail.com college Email address w/ numbers person1234@site.com person1234def firstLetters(wordsList) : firstLets = for word in wordsList: let = word[0] firstLets . append (let) return firstLets myWords = ["Apple", "Banana", "Carrot"] flets = firstLetters(myWords) print (flets)Complete the code for the following prompt in your groups. Part 1 1. Choose either First Letters.p_y '1', or Last Letterspy '44 to do a unit test 2. Complete a copy of the Unit Test Outline Template and ll in details for your function. 3. Be prepared to share your outline with the class. Part 2 1. Use the Unit Test Outline to code the unit test for your function using the Unit Test Code Starterpy '44 2. Add a doc string to your function in the UnitTest Code le. Submit Submit the outline and the code here to Canvas. Everyone in your group will submit the same materials. if you're completing this assignment independently, complete the code independently for either function. \f\fName of Function Unit Test Key Questions Features (description of what your unit does]: Inputs {what does your unit ta he as input, think of all details]: Results [description of what the resmt can be]: Test Data Sets Description Input Result
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