Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wordList = []
- b = 1
- while b == 1:
- listInput = input("Enter a word or Press enter to list words: ")
- if listInput != "":
- TempWord = list(listInput.lower())
- FirstLetter = TempWord[0]
- if TempWord.count(FirstLetter) > 1:
- wordList.append(listInput)
- else:
- continue
- elif listInput == "":
- for a in range(0, len(wordList)):
- print(wordList[a])
- b = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement