Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- word = input("Enter word: ")
- output = translate(word)
- if type(output) == list:
- for item in output:
- print(item)
- else:
- print(output)
- #How to rectify this error
- #Output looks like:
- #data = json.load(open("data.json"))
- #IOError: [Errno 2] No such file or directory: 'data.json'
Add Comment
Please, Sign In to add comment