%!TEX pdflatex

\documentclass[a4paper,10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage{enumerate}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{frcursive}
\usepackage{multicol}
\usepackage[top=2cm,bottom=1.5cm,left=1.5cm,right=2cm]{geometry}
\AtBeginDocument{\renewcommand{\labelitemi}{\textbullet}}
\setlength{\parindent}{0pt}
\newcommand\V[1]{\overrightarrow{#1}}
\newcommand\R{\mathbb{R}}
\newcommand\N{\mathbb{N}}
\usepackage{graphicx}
\usepackage{pstricks}
\usepackage{pstricks-add}
\usepackage{pst-plot}
\usepackage{fancyhdr}
\usepackage{eurosym}
\usepackage{listings}
\lstset{
	literate=
	{á}{{\'a}}1 {é}{{\'e}}1 {í}{{\'i}}1 {ó}{{\'o}}1 {ú}{{\'u}}1
	{Á}{{\'A}}1 {É}{{\'E}}1 {Í}{{\'I}}1 {Ó}{{\'O}}1 {Ú}{{\'U}}1
	{à}{{\`a}}1 {è}{{\`e}}1 {ì}{{\`i}}1 {ò}{{\`o}}1 {ù}{{\`u}}1
	{À}{{\`A}}1 {È}{{\'E}}1 {Ì}{{\`I}}1 {Ò}{{\`O}}1 {Ù}{{\`U}}1
	{ä}{{\"a}}1 {ë}{{\"e}}1 {ï}{{\"i}}1 {ö}{{\"o}}1 {ü}{{\"u}}1
	{Ä}{{\"A}}1 {Ë}{{\"E}}1 {Ï}{{\"I}}1 {Ö}{{\"O}}1 {Ü}{{\"U}}1
	{â}{{\^a}}1 {ê}{{\^e}}1 {î}{{\^i}}1 {ô}{{\^o}}1 {û}{{\^u}}1
	{Â}{{\^A}}1 {Ê}{{\^E}}1 {Î}{{\^I}}1 {Ô}{{\^O}}1 {Û}{{\^U}}1
	{œ}{{\oe}}1 {Œ}{{\OE}}1 {æ}{{\ae}}1 {Æ}{{\AE}}1 {ß}{{\ss}}1
	%{u}{{\H{u}}}1 {U}{{\H{U}}}1 {o}{{\H{o}}}1 {O}{{\H{O}}}1
	{ç}{{\c c}}1 {Ç}{{\c C}}1 {ø}{{\o}}1 {å}{{\r a}}1 {Å}{{\r A}}1
	{€}{{\EUR}}1 {£}{{\pounds}}1
}
\lstdefinestyle{stylepython}{
	language=Python,
	basicstyle=\ttfamily,
	%       name=iciNOM,
	%title={Titre},
	%       caption={iciTitre},
	%       label={iciNom},
	commentstyle=\footnotesize\color{green!50!black},
	keywordstyle=\color{blue},
	stringstyle=\color{olive},
	numberstyle=\tiny,
	%       mathescape,
	%       showstringspaces=false,
	%       tabsize=2,
	framexleftmargin=5mm,
	%       framexrightmargin=5pt,
	%       framexbottommargin=5pt
	xleftmargin=0mm,
	keepspaces=false,
	classoffset=1,
	numbers=left,
	stepnumber=1,
	numbersep=8pt,
	showstringspaces=false,
	frame=single,
	framerule=1pt,
	rulecolor=\color{blue!20},
	%       breaklines=true,
	%       rulesepcolor=\color{blue}, %avec frame=shadowsbox
	backgroundcolor=\color{blue!10},tabsize=4
}
\pagestyle{fancy}
\newcommand{\Cnp}[2]{\mbox{$\left(\begin{array}{c} \!\!#1\!\!\\ \!\!#2\!\!\end{array}\right)$}}
\newcounter{nexo}
\setcounter{nexo}{0}
\newcommand{\exo}{ \vspace{0.5cm} \\%
	\stepcounter{nexo}
	{\textbf{Exercice %
			\arabic{nexo}}}
	\\}
\newcommand{\encad}[1]{%
	\fbox{\begin{minipage}[t]{0.99 \linewidth}%
			#1\end{minipage}}}
\begin{document}
	On définit une suite $(a_n)$ par $ n \in \N$,$a_0=800$ et $a_{n+1}=\dfrac34 a_n+330$.\\
	Le programme Python ci-dessous permet de déterminer la plus petite valeur de $n$ à partir de laquelle $a_n$ est supérieur ou égal à
	1100. Compléter les parties manquantes.\\
	\begin{minipage}{8cm} %--------------------------------------
		\begin{lstlisting}[style=stylepython]
def seuil(n):
	a=float(800)
	while .............:
		a=.............
		n=.............
	return n
		\end{lstlisting}
	\end{minipage}
	%\end{minipage}
\end{document}