Guest User

Untitled

a guest
Jan 20th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. word = input("Enter word: ")
  2. output = translate(word)
  3. if type(output) == list:
  4. for item in output:
  5. print(item)
  6. else:
  7. print(output)
  8.  
  9.  
  10.  
  11. #How to rectify this error
  12.  
  13.  
  14.  
  15.  
  16. #Output looks like:
  17. #data = json.load(open("data.json"))
  18. #IOError: [Errno 2] No such file or directory: 'data.json'
Add Comment
Please, Sign In to add comment