This code finds the occurences of a single letter using functions. How can I have it work for any letter as a parameter, not just letter e

后端 未结 0 1418
时光说笑
时光说笑 2020-12-01 02:15
def main():
    letter = "e" 
    myList = []
    a = input("whats the word: ")
    for i in a:
      myList.append(i)
      count = 0
      for          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题