Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- keywords = ["screen", "cracked", "wet", "display", "button", "volume", "speakers", "sound"]
- while True:
- try:
- help = input("What is wrong with your phone? ")
- break
- except ValueError:
- print ("Error")
- listed = help.split()
- final = ""
- for i in range (len(listed)):
- if listed[i] in keywords:
- final += listed[i] + " "
- print (final)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement