%[if %("%id=codebox%" == "true")% ]%
%html="// Python code to generate a random password
import string
from random import *
characters = string.ascii_letters + string.punctuation  + string.digits
password =  ''.join(choice(characters) for x in range(randint(7, 11)))
print password

// Output
f&j{dI£x9!R$2wd-D8f+"%
%[endif]%