I'm working on a code that firstly checks first letters of words from a list and letter counts only those that are letter 'U'
Currently I'm facing issue with:
- how to make main procedure to pass the input to check_first_letter
- how to search the check_first_letter results and count them
code:
def check_first_letter(w):
return [s[:1] for s in w]
def measure_udacity(methodToRun):
result = methodToRun()
return result
print measure_udacity(['Dave','Sebastian','Katy'])
Aucun commentaire:
Enregistrer un commentaire