Complete the method named charsearch in the class definition for Listops that will search the object attribute
Fantastic news! We've Found the answer you've been seeking!
Question:
Complete the method named charsearch in the class definition for Listops that will search the object attribute xlist (a list of strings) and return the number of strings that begin with the input character sval.
For example, if xlist contains:
['asdf', 'dfgh', 'sdfg', 'sfghj', 'swertq', 'qtyiu']
and sval is 's', then the method should return a value of 3.
Related Book For
Systems Analysis and Design
ISBN: 978-1133274636
9th Edition
Authors: Shelly Cashman, Gary B. Shelly and Harry J. Rosenblatt
Posted Date: