\documentclass[a4paper,10pt, landscape]{classCours}
\usepackage{listings}

\definecolor{darkWhite}{rgb}{0.94,0.94,0.94}
 
\lstset{
    aboveskip=1mm,
    belowskip=-1mm,
    backgroundcolor=\color{darkWhite},
    basicstyle=\footnotesize,
    breakatwhitespace=false,
    breaklines=true,
    captionpos=b,
    commentstyle=\color{red},
    deletekeywords={...},
    escapeinside={\%*}{*)},
    extendedchars=true,
    framexleftmargin=16pt,
    framextopmargin=3pt,
    framexbottommargin=3pt,
    frame=tb,
    keepspaces=true,
    keywordstyle=\color{blue},
    language=Python,
    literate=
    {²}{{\textsuperscript{2}}}1
    {⁴}{{\textsuperscript{4}}}1
    {⁶}{{\textsuperscript{6}}}1
    {⁸}{{\textsuperscript{8}}}1
    {€}{{\euro{}}}1
    {é}{{\'e}}1
    {è}{{\`{e}}}1
    {ê}{{\^{e}}}1
    {ë}{{\¨{e}}}1
    {É}{{\'{E}}}1
    {Ê}{{\^{E}}}1
    {û}{{\^{u}}}1
    {ù}{{\`{u}}}1
    {â}{{\^{a}}}1
    {à}{{\`{a}}}1
    {á}{{\'{a}}}1
    {ã}{{\~{a}}}1
    {Á}{{\'{A}}}1
    {Â}{{\^{A}}}1
    {Ã}{{\~{A}}}1
    {ç}{{\c{c}}}1
    {Ç}{{\c{C}}}1
    {õ}{{\~{o}}}1
    {ó}{{\'{o}}}1
    {ô}{{\^{o}}}1
    {Õ}{{\~{O}}}1
    {Ó}{{\'{O}}}1
    {Ô}{{\^{O}}}1
    {î}{{\^{i}}}1
    {Î}{{\^{I}}}1
    {í}{{\'{i}}}1
    {Í}{{\~{Í}}}1,
    morekeywords={*,...},
    numbers=left,
    numbersep=10pt,
    numberstyle=\tiny\color{black},
    rulecolor=\color{black},
    showspaces=false,
    showstringspaces=false,
    showtabs=false,
    stepnumber=1,
    stringstyle=\color{gray},
    tabsize=4,
    title=\lstname,
}

\pagestyle{empty}
\geometry{left=10mm,right=10mm, top=7mm, bottom=7mm}

\author{}
\title{}
\date{}

\begin{document}
    
\begin{minipage}{0.5\textwidth}
    \lstinputlisting[language=Python]{tri_bulles.py}
\end{minipage}
\begin{minipage}{0.5\textwidth}
    \includegraphics[height=250pt]{./fig/2nd2_bulles}
\end{minipage}

\begin{minipage}{0.5\textwidth}
    \lstinputlisting[language=Python]{tri_min.py}
\end{minipage}
\begin{minipage}{0.5\textwidth}
    \includegraphics[height=280pt]{./fig/2nd2_min}
\end{minipage}

\end{document}