If like me you prefer to read off paper, there are lots of books available on Python. Perhaps one of the best for beginners is "Learning Python" published by O'Reilly. It contains more than you really need to know, though.
The jython.org site has some introductory information, also see the support on their Wiki, https://wiki.python.org/jython/.
Non-programmers might want to start with this Beginners Guide listed on the Jython wiki.
Looking at the examples in the "jython" directory in the JMRI distribution will also be of value. See the examples page for links to these sample scripts.
For the purposes of writing JMRI scripts, they don't differ very much. Most of the differences involve what happens in somewhat contrived error cases. There are also some restrictions on what you can do with the computer's configuration information, etc, in Jython, but these are not things a JMRI script is likely to need.
For example, this is a syntax error:
a = 15 print a b = 21because those statements, though logically grouped at the same level in the program, aren't indented the same. This sounds like a pain at first, but you rapidly get used to it. Then it makes things like the following pretty easy to read, without having to worry about where the { and } go:
if ( now == -1 ) : done = 1 else : done = 0 print doneIf you do get a message about "Syntax error", look at the indicated line number to see if your indentation isn't lined up.
Support is improving all the time, though, and you might want to try a more modern version of Jython than the one that JMRI distributes. To do that, install Jython on you computer, then add a python.properties file in your user files directory or preferences directory that sets the python configuration variables, e.g. on Windows:
python.path = C:\\jython2.7.0\\Lib\\site\-packages python.startup =
Note that the double-back-slashes are necessary. They'll appear as single-back-slashes in the final value, which you can check with the "Context" item from the main JMRI Help menu. On Mac use something like:
python.path = /Users/username/jython2.7.0/Lib/site-packages python.startup =or where-ever you've installed the new Jython. Linux is similar.