def demo(delay=<NUM_LIT:1>, interactive=True):
script = """<STR_LIT>"""<EOL>if not PY2:<EOL><INDENT>script = script.replace('<STR_LIT>', '<STR_LIT:input>')<EOL><DEDENT>for line in script.strip().split('<STR_LIT:\n>'):<EOL><INDENT>line = line.strip()<EOL>if not '<STR_LIT>' in line:<EOL><INDENT>time.sleep(delay)<EOL>print("<STR_LIT>".format(line))<EOL>time.sleep(delay)<EOL><DEDENT>if not interactive:<EOL><INDENT>if '<STR_LIT>' in line or '<STR_LIT>' in line or '<STR_LIT>' in line:<EOL><INDENT>line = '<STR_LIT>'<EOL><DEDENT><DEDENT>exec(line)<EOL><DEDENT>
Play a demo script showing most of the oct2py api features.

Parameters
==========
delay : float
    Time between each command in seconds.