I am novice to Mathematica. I want to convert Mathematica code from my textbook to Java or Python to trace coding.
I am not exactly sure what you mean by "trace coding", but in general, the Mathematica evalution methods are very complicated, and could be documented better. Again, in general, in any computer language, I suggest breaking code into smaller pieces and placing frequent output statements to see what the results of evaluations are. There is a
Trace command but it produces volumnious and confusing output. Most Mathematica commands are higher level than those in other languages that you mentioned. Depending on the particular Mathematica code, if it is simple enough, it may be possible to "transliterate" it into another langauges. In any case, you need to read the documentation for the Mathematica commands you will be using. The
TreeForm commands will help you to see what the Mathematics expressions you are using really look like.