Advertisement
Guest User

Untitled

a guest
Oct 21st, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. import csv
  2. reader = csv.reader(open('Dictionary.csv'))
  3.  
  4. problem_info = {}
  5.  
  6. for row in reader:
  7. key = row[0]
  8. if key in problem_info:
  9. pass
  10. problem_info[key] = row[1:]
  11.  
  12.  
  13. userproblem=raw_input("What problem are you having with your device?")
  14. userproblemsplit=userproblem.split(" ") #Process is done in the background
  15.  
  16. for word in userproblemsplit:
  17. if word in problem_info:
  18. print "your solution is"
  19. for k,v in problem_info.items():
  20. for e in v:
  21. print e
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement