I have recently started learning Python and have got stuck in a small project I was trying. I have an array which contains data for my project, I wanted to link this by using the code.
>>> keys = ['a', 'b', 'c']
>>> values = [1, 2, 3]
>>> dictionary = dict(zip(keys, values))
But for my project I need Japanese characters in my values array. Is there a method where I can have my Japanese characters in the Array? Also if I were to type the words in using unicode, how would I be able to display the words equivalent to the unicode in the dictionary For example:
print(u'\4096')
Would work but if I were to print the entire dictionary as
print (dictionary)
It wouldn't display my Japanese Characters. How would I be able to get around this problem?
Extra:
Another Problem is that I have my first array instead as a list as it was required to store information put together, is there an alternative solution?
dictionary = dict(zip(file_content,japanese))
TypeError: unhashable type: 'list'