eader>
<br>
<ul class="small">
  <li>Python Interpreter Example</li>
  <ul>
    <li>Print memory block information</li>
  </ul>
  <span style="font-size:20px">
  <pre>

  Python Interpreter for Ghidra
  Based on Jython version 2.7.1 (default:0df7adb1b397, Jun 30 2017, 19:02:43) 
  [Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)]
  Press 'F1' for usage instructions
  >>> 
  >>> mem = currentProgram.getMemory()
  >>> for block in mem.getBlocks():
  ...   print block.getName() + ", " + hex(block.getSiz