Is there any way of putting pickle in this code?
while True:
import time
print("This is a yes or no troubleshooting question")
time.sleep(0.75)
user_input=input("What is the brand of your device? ")
if user_input in("iPhone", "HTC", "Samsung", "Nokia", "iphone", "samsung", "htc", "nokia", "Apple", "apple", "Sony", "sony", "Huawei", "huawei", "LG", "lg"):
time.sleep(0.75)
print("Next question")
else:
print("Sorry I dont know that brand")
break
import time
time.sleep(0.75)
varSentence = input("Explain what is wrong with the phone: ")
varSplit = varSentence.split()
if "display" in varSplit: #This will detect that there is a keyword
time.sleep(0.75)
print ("If the display isn't working, please take it to the nearest repair shop.") #This is the answer to the keyword which you typed in
elif "water" in varSplit:
time.sleep(0.75)
print ("If some liquid has entered the phone, you will need to put it in a bag of rice for the liquid to be absorbed.")
elif "audio" in varSplit:
time.sleep(0.75)
print ("If the phone has audio problems, you will need to it to the nearest repair shop.")
elif "battery" in varSplit:
time.sleep(0.75)
print ("If you are having problems with the battery, you will need to replace the battery or go to a repair shop.")
elif "charging" in varSplit:
time.sleep(0.75)
print ("If you are having charging issues, you will have to replace the charger or you will have to get the charging port fixed.")
elif "software" in varSplit:
time.sleep(0.75)
print ("If you have software issues, you will need to reset the phone or updating the software.")
elif "volume" in varSplit:
time.sleep(0.75)
print ("If you have problems with the volume button, you will have go to a repair shop.")
time.sleep(0.75)
print("Thank you for your service ")
answer = input("Would you like to start again?. ").lower().strip()
if answer == "no":
exit()