\documentclass[a4paper]{article}
% generated by Docutils <http://docutils.sourceforge.net/>
\usepackage{fixltx2e} % LaTeX patches, \textsubscript
\usepackage{cmap} % fix search and cut-and-paste in Acrobat
\usepackage{ifthen}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\setcounter{secnumdepth}{0}

%%% Custom LaTeX preamble
% PDF Standard Fonts
\usepackage{mathptmx} % Times
\usepackage[scaled=.90]{helvet}
\usepackage{courier}

%%% User specified packages and stylesheets

%%% Fallback definitions for Docutils-specific commands

% inline markup (custom roles)
% \DUrole{#1}{#2} tries \DUrole#1{#2}
\providecommand*{\DUrole}[2]{%
  \ifcsname DUrole#1\endcsname%
    \csname DUrole#1\endcsname{#2}%
  \else% backwards compatibility: try \docutilsrole#1{#2}
    \ifcsname docutilsrole#1\endcsname%
      \csname docutilsrole#1\endcsname{#2}%
    \else%
      #2%
    \fi%
  \fi%
}

% hyperlinks:
\ifthenelse{\isundefined{\hypersetup}}{
  \usepackage[colorlinks=true,linkcolor=blue,urlcolor=blue]{hyperref}
  \urlstyle{same} % normal text font (alternatives: tt, rm, sf)
}{}


%%% Body
\begin{document}


\section{Code%
  \label{code}%
}

First, we assign variables:
%
\begin{quote}{\ttfamily \raggedright \noindent
\DUrole{ln}{1~}~\DUrole{name}{x}~\DUrole{operator}{=}~\DUrole{literal}{\DUrole{number}{\DUrole{integer}{6}}}~\\
\DUrole{ln}{2~}~\DUrole{name}{y}~\DUrole{operator}{=}~\DUrole{literal}{\DUrole{number}{\DUrole{integer}{7}}}
}
\end{quote}

Then, we multiply:
%
\begin{quote}{\ttfamily \raggedright \noindent
\DUrole{keyword}{print}~\DUrole{name}{x}\DUrole{operator}{*}\DUrole{name}{y}
}
\end{quote}


\section{Output%
  \label{output}%
}

The output is:
%
\begin{quote}{\ttfamily \raggedright \noindent
42
}
\end{quote}

\end{document}
