${i+1}.
${pretty(q['text'])}
% if q['type'] == 'radio':
% for opt in q['options']:
${pretty(opt)}
% endfor
% elif q['type'] == 'checkbox':
% for opt in q['options']:
${pretty(opt)}
% endfor
% elif q['type'] in ('text', 'text_regex'):
% elif q['type'] == 'textarea':
% endif
% if t['show_hints']:
% if 'hint' in q:
Ajuda
% endif # hint
% if 'modal' in q:
% endif # modal
% endif # show_hints
% if t['practice'] and 'grade' in q:
% if q['grade'] > 0.99:
${round(q['grade'] * q['points'] / total_points * 20.0, 1)} pontos
% elif q['grade'] > 0.49:
${round(q['grade'] * q['points'] / total_points * 20.0, 1)} pontos
% else:
${random.choice(t['offensive']) if 'offensive' in t else ''}
${round(q['grade'] * q['points'] / total_points * 20.0, 1)} pontos
% endif
% endif
% if t['show_points']:
(Cotação: ${round(q['points'] / total_points * 20.0, 1)} pontos)
% endif
% if t['debug'] or t['show_ref']:
% endif