Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import csv
- reader = csv.reader(open('Dictionary.csv'))
- problem_info = {}
- for row in reader:
- key = row[0]
- if key in problem_info:
- pass
- problem_info[key] = row[1:]
- userproblem=raw_input("What problem are you having with your device?")
- userproblemsplit=userproblem.split(" ") #Process is done in the background
- for word in userproblemsplit:
- if word in problem_info:
- print "your solution is"
- for k,v in problem_info.items():
- for e in v:
- print e
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement