Message Boards Message Boards

0
|
6736 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

set a Mathematica dictionary ( associative array )

Posted 10 years ago

**Hi everyone, I am trying to make a dictionary through mathematica. I know its possible on python do you think its the arabic characters ? I need to know the right built in functions for the dictionary. this is what I tried.. I am a Linguistics major so.. I know that this looks really bad but at least I tried :)

**enter image description here

POSTED BY: Sana Alseayed

From you code example it is not clear what you are trying to do. Of course Mathematica is not Python, so writing (what I suspect is) Python code in Mathematica will just lead to tears. What is dictionary? What is ArabicLetters? Have you defined these somewhere else? What is x? Of course the syntax in your expression (with the colons) is completely non-Mathematica. So, first things first, take a moment out to learn the syntax of Mathematica. Here is a start:

http://www.wolfram.com/language/fast-introduction-for-programmers/interactive-usage/

If you are using Mathematica version 10, you might want to look up the documentation for Association as that might get you started on the road to what I think you are wanting:

http://reference.wolfram.com/language/ref/Association.html

POSTED BY: David Reiss
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract