fork(1) download
  1. # your code goes here
  2.  
  3. mylist = ["hello","world","how","you","doing"]
  4. letter = input("input a letter you would like to search ").lower()
  5.  
  6. words = list(filter(lambda s: s.startswith(letter), mylist))
  7.  
  8. print( len(words) )
  9.  
  10. for w in words: print ("\n"+w)
Success #stdin #stdout 0.01s 27712KB
stdin
h
stdout
input a letter you would like to search 2

hello

how