Complete Task 3: extract_letters() 1) Complete the extract_letters() function. Mark Breakdown 2) 2 additional doctests a

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Complete Task 3: extract_letters() 1) Complete the extract_letters() function. Mark Breakdown 2) 2 additional doctests a

Post by answerhappygod »

Complete Task 3: extract_letters()
1) Complete the extract_letters() function.
Mark Breakdown
2) 2 additional doctests are created
a) Doctest output is accurate (0.5 marks x 2 = 1 mark)
b) Doctest passes (0.5 marks x 2 = 1 mark)
3) Does function pass all assignment doctests provided? (0.5
marks x 4 = 2 marks)
Complete Task 3 Extract Letters 1 Complete The Extract Letters Function Mark Breakdown 2 2 Additional Doctests A 1
Complete Task 3 Extract Letters 1 Complete The Extract Letters Function Mark Breakdown 2 2 Additional Doctests A 1 (57.82 KiB) Viewed 28 times
Edef extract_letters (text): 54 55 56 57 Extract all the unique letters present in the text string. param text: string data :return: a tuple of all the unique letters of the string in lowercase 58 59 60 61 62 63 >>> extract_letters("Python 123 is COO!_") ('p', 'y', 't', 'h', 'o', 'n', 'i', 's', 'c') >>> extract_letters ("Numbers Are Overrated!") ('n', 'u', 'm', 'b', 'e', 's', 's', 'a', 'o', 'v', 't', 'd') >>> extract_letters("123 456") 0 >>> extract_letters("/3 E N!C3") ('e', 'n', 'c') 64 65 Add 2 more Doctests 888%n%乃 66 67 68 69 70 71 72 73 pass # code goes here. Replace 'pass' with your own python code
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply