Machine Problem in Python
1. Write a word bank program
2. The program will ask to enter a word
3. The program will store the word in a list
4. The program will ask if the user wants to try again. The user will input
Y/y if Yes and N/n if No
5. If Yes, refer to step 2.
6. If No, Display the total number of words and all the words that user
entered.
I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details. If you want to advertise on my website, kindly contact me also at my email address also. Thank you.
My email address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com
My mobile number here in the Philippines is 09173084360
Program Listing
res = "y"
wordbank = list()
while res.lower() == "y":
word = str(input("Enter a word: "))
wordbank.append(word)
res = str(input("Do you want to try again? (Y/N)"))
print("=======")
print(f"Total Number of Words: {len(wordbank)}")
print("Word in the list:")
for w in wordbank:
print(w)