\documentclass[12pt]{beamer}

%% Packages pour franciser le document
\usepackage[french]{babel}
\usepackage[np]{numprint}

%% Gestion des erreurs
\usepackage{etex}

%% Packages pour les maths
\usepackage{calc}		% Permet de faire des calculs 
\usepackage{systeme}	% Permet le création de systèmes

%% Création de nouvelles commandes
\usepackage{ifthen,xifthen}		% Tests if/then/else 
\usepackage{xargs}		%
\usepackage{numprint}	%
\usepackage{multido}	%

%% Packages pour le texte
\usepackage{eurosym}			% Symbole euro
\usepackage{lscape}				% Gestion du mode paysage
\usepackage{fancybox,fancyhdr,fancyvrb}	% Permet de définir de nouveau style d'encadrement, de réaliser les en-têtes et pieds de page, écrire en verbatim
\usepackage{frcursive}			
\usepackage{setspace}			% Permet de modifier l'interligne
\usepackage{lastpage}			% 
\usepackage{textcomp}	
\usepackage{keystroke}                       %

%% Packages pour insérer du code
\usepackage[cache=false]{minted}	% Permet d'insérer du code
\usepackage{alltt} 

%% Packages pour les tableaux
\usepackage{tabularx} 		% Permet de créer un tableau de largeur donnée.
\usepackage{colortbl}
\usepackage{multicol,multirow} 	% Permet de créer des cellules de tableau fusionnées horizontalement et verticalement
\usepackage{slashbox}

%% Packages pour les graphismes
\usepackage{rotating}			% Permet de tourner du texte	
\usepackage[export=pgf]{texgraph}
%\usepackage[tikz]{bclogo}			% Interdit avec Beamer
\usepackage{tikz}
\usepackage{eso-pic}
\usetikzlibrary{automata,arrows,shadows,calc,decorations.pathreplacing,shapes,shadows.blur,patterns}			%

%% Pour les swf
\usepackage{multimedia}
%\usepackage{media9}

\setbeamertemplate{itemize item}[ball]
\setbeamertemplate{itemize subitem}[triangle]
\setbeamertemplate{itemize subsubitem}[circle]


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Encodage et fonte du document %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage[utf8]{inputenc}
\usepackage[charter]{mathdesign}
\usepackage{mathpazo,amssymb}
\usepackage{BOONDOX-cal}
\usepackage{fourier-orns}
\usepackage[T1]{fontenc} 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Gestion des marges, entêtes, pieds de page et couleurs des sections et sous-sections %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usetheme{Warsaw}
%\usecolortheme{crane}
\usecolortheme{dolphin}
\definecolor{UBCblue}{rgb}{0.04706, 0.13725, 0.26667} % UBC Blue (primary)
\usecolortheme[named=UBCblue]{structure}
%\usecolortheme[named=Mahogany]{structure} % Sample dvipsnames color
\usefonttheme[onlymath]{serif}

%%% commentaires
%\setbeameroption{show notes}


\setbeamertemplate{headline}{%
\begin{beamercolorbox}[ht=0ex,dp=0ex,leftskip=.3cm,rightskip=.3cm plus1fil]{section in head/foot}%
    \raisebox{1.125ex}%
    {\tiny\bfseries\insertframenumber/\inserttotalframenumber}%
    \hfill%
\end{beamercolorbox}}
\setbeamertemplate{blocks}[rounded][shadow=false]
\addtobeamertemplate{headline}
{}
{%
  \vskip-0.2pt
  \pgfuseshading{beamer@topshade}
  \vskip-2pt
}

\newcommand{\beameronly}[1]{#1} % permet de mettre des pause dans beamer pas dans poly
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{footline}  % tiré du fichier beamerouterinfolines.sty
{
  \leavevmode%
  \hbox{%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
    \usebeamerfont{section in head/foot}{\bf\insertshorttitle}
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
    \usebeamerfont{section in head/foot}{\bf\insertshortsubtitle} % pour avoir le nom du diapo au centre
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
    \insertframenumber{} / \inserttotalframenumber\hspace*{2ex} 
  \end{beamercolorbox}
  }%
  \vskip0pt%
}
\setlength{\parindent}{0cm}
% background beamer
\definecolor{couleurhaut}{rgb}{0.85,0.9,1}  % creme
\definecolor{couleurmilieu}{rgb}{1,1,1}  % vert pale
\definecolor{couleurbas}{rgb}{0.85,0.9,1}  % blanc
\setbeamertemplate{background canvas}[bg=white]%
\definecolor{forestgreen(web)}{rgb}{0.13, 0.55, 0.13}

\setbeamersize{text margin left=1cm}  % <- like this
\setbeamersize{text margin right=1cm} % <- like this



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Informations sur le document et gestion des liens %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\title{{\bf PYTHON : LES LISTES}}
\subtitle{\bf Série 2}
\author{\small{Calcul mental et automatismes -- IREM de Clermont-Ferrand}}
\institute{\texttt{}}
\date{}


\begin{document}

\begin{frame}
\titlepage 
\end{frame}

\begin{frame}
 \Huge{ Répondre par VRAI ou FAUX}
\end{frame}



%%%%%%%%%%%%%%%%%%%%
%%% Question (1) %%%
%%%%%%%%%%%%%%%%%%%%
\section{Question (1)}

\begin{frame}
\frametitle{\textbf{Question (1)}}
%
%\vspace*{1cm}
%

{\centering 
	\makebox[0pt]{%
	\begin{tabular}{ll}
	    {\Huge Si on a :} &\\ 
		&\\
		& {\Huge liste=[2,5,12,23]}\\[0.2cm]
		& {\Huge liste[2]=3}\\
		&\\
	    {\Huge Alors} &
	\end{tabular}
	}
	\par
}

\bigskip

\begin{block}{}
\begin{center}
 \Huge liste renvoie [3,5,12,23]
\end{center}
\end{block}
\end{frame}



%
%%%%%%%%%%%%%%%%%%%%
%%% Question (2) %%%
%%%%%%%%%%%%%%%%%%%%
\section{Question (2)}

\begin{frame}
\frametitle{\textbf{Question (2)}}

{\centering
	\makebox[0pt]{%
	\begin{tabular}{ll}
	    {\Huge Si on a :}&\\ 
	    &\\
		&{\Huge liste=[2,5,12,23]}\\[0.2cm]
		&{\Huge liste[2]=3}\\
		&\\
	    {\Huge Alors} &
	\end{tabular}
	}
	\par
}

\bigskip

\begin{block}{}
\begin{center}
 \Huge liste renvoie [2,5,3,23]
\end{center}
\end{block}
\end{frame}

%%%%%%%%%%%%%%%%%%%%
%%% Question (3) %%%
%%%%%%%%%%%%%%%%%%%%
\section{Question (3)}

\begin{frame}
\frametitle{\textbf{Question (3)}}

{\centering
	\makebox[0pt]{%
	\begin{tabular}{ll}
	    {\Huge Si on a :}&\\ 
	    &\\
		&{\Huge liste=[1,2,3,4]}\\[0.2cm]
		&{\Huge liste.pop(3)}\\
		&\\
	    {\Huge Alors} &
	\end{tabular}
	}
	\par
}

\bigskip

\begin{block}{}
\begin{center}
 \Huge liste renvoie [1,2,4]
\end{center}
\end{block}
\end{frame}


%%%%%%%%%%%%%%%%%%%%
%%% Question (4) %%%
%%%%%%%%%%%%%%%%%%%%
\section{Question (4)}

\bigskip
\begin{frame}
\frametitle{\textbf{Question (4)}}

{\centering
	\makebox[0pt]{%
	\begin{tabular}{ll}
	    {\Huge Si on a :}&\\ 
	    &\\
		&{\Huge liste=[1,2,3,4]}\\[0.2cm]
		&{\Huge liste.pop(3)}\\
		&\\
	    {\Huge Alors} &
	\end{tabular}
	}
	\par
}

\bigskip

\begin{block}{}
\begin{center}
 \Huge liste renvoie [1,2,3]
\end{center}
\end{block}
\end{frame}

%%%%%%%%%%%%%%%%%%%%
%%% Question (5) %%%
%%%%%%%%%%%%%%%%%%%%
\section{Question (5)}

\begin{frame}
\frametitle{\textbf{Question (5)}}

{\centering
	\makebox[0pt]{%
	\begin{tabular}{ll}
	    {\Huge Si on a :}&\\ 
	    &\\
		&{\Huge liste=[1,2,3,4,5]}\\[0.2cm]
		&{\Huge liste.remove(3)}\\
		&\\
	    {\Huge Alors } &
	\end{tabular}
	}
	\par
}

\bigskip

\begin{block}{}
\begin{center}
 \Huge liste renvoie [1,2,4,5]
\end{center}
\end{block}
\end{frame}

%%%%%%%%%%%%%%%%%%%%
%%% Question (6) %%%
%%%%%%%%%%%%%%%%%%%%
\section{Question (6)}

\begin{frame}
\frametitle{\textbf{Question (6)}}

{\centering
	\makebox[0pt]{%
	\begin{tabular}{ll}
	    {\Huge Si on a :}&\\ 
	    &\\
		&{\Huge liste=[1,2,3,4,5]}\\[0.2cm]
		&{\Huge liste.remove(3)}\\
		&\\
	    {\Huge Alors } &
	\end{tabular}
	}
	\par
}

\bigskip

\begin{block}{}
\begin{center}
 \Huge liste renvoie [1,2,3,5]
\end{center}
\end{block}
\end{frame}


%\begin{frame}
%	\begin{block}{}
%	\begin{center}
%	{\Large
%	Pour chacune des questions suivantes, déterminer \underline{la} bonne réponse.
%	}
%	\end{center}
%	\end{block}
%\end{frame}

%%%%%%%%%%%%%%%%%%%%
%%% Question (7) %%%
%%%%%%%%%%%%%%%%%%%%
\section{Question (7)}

\begin{frame}
\frametitle{\textbf{Question (7)}}

{\centering
	\makebox[0pt]{%
	\begin{tabular}{ll}
	    {\Huge Si on a :}&\\ 
	    &\\
		&{\Huge liste=[5,12,17,23,52]}\\
		&\\
	    {\Huge Alors } &
	\end{tabular}
	}
	\par
}

\bigskip

\begin{block}{}
\begin{center}
 \Huge liste[-1] renvoie [4,11,16,22,51]
\end{center}
\end{block}
\end{frame}

%%%%%%%%%%%%%%%%%%%%
%%% Question (8) %%%
%%%%%%%%%%%%%%%%%%%%
\section{Question (8)}

\begin{frame}
\frametitle{\textbf{Question (8)}}

{\centering
	\makebox[0pt]{%
	\begin{tabular}{ll}
	    {\Huge Si on a :}&\\ 
	    &\\
		&{\Huge liste=[5,12,17,23,52]}\\
		&\\
	    {\Huge Alors } &
	\end{tabular}
	}
	\par
}

\bigskip

\begin{block}{}
\begin{center}
 \Huge liste[-1] renvoie 52
\end{center}
\end{block}
\end{frame}

%%%%%%%%%%%%%%%%%%%%
%%% Question (9) %%%
%%%%%%%%%%%%%%%%%%%%
\section{Question (9)}

\begin{frame}
\frametitle{\textbf{Question (9)}}

{\centering
	\makebox[0pt]{%
	\begin{tabular}{ll}
	    {\Huge Si on a :}&\\ 
	    &\\
		&{\Huge L1=[7,8,9]}\\[.2cm]
		&{\Huge L2=L1}\\[.2cm]
		&{\Huge L1.remove(L1[0])}\\
%		&\\
	    {\Huge Alors} &
	\end{tabular}
	}
	\par
}

\bigskip

\begin{block}{}
\begin{center}
 \Huge L2 renvoie [7,8,9]
\end{center}
\end{block}
\end{frame}

%%%%%%%%%%%%%%%%%%%%%
%%% Question (10) %%%
%%%%%%%%%%%%%%%%%%%%%
\section{Question (10)}

\begin{frame}
\frametitle{\textbf{Question (10)}}

{\centering
	\makebox[0pt]{%
	\begin{tabular}{ll}
	    {\Huge Si on a :} &\\ 
	    &\\
		&{\Huge L1=[7,8,9]}\\[.2cm]
		&{\Huge L2=L1}\\[.2cm]
		&{\Huge L1.remove(L1[0])}\\
%		&\\
	    {\Huge Alors } &
	\end{tabular}
	}
	\par
}

\bigskip

\begin{block}{}
\begin{center}
 \Huge L2 renvoie [8,9]
\end{center}
\end{block}
\end{frame}

\begin{texgraph}[preload="ornaments.mod", name=fin, export=pgf, auto=false]
Fenetre(-3+0.5*i,3-0.5*i,1+i),
Marges(0,0,0,0),
S:=Loadvectorian(72),
Drawvectorian(-2, S, [width:=2]),
S:=Loadvectorian(73),
Drawvectorian(2, S, [width:=2]),
LabelSize:=Huge, Label(0, "FIN") 
\end{texgraph}

\begin{frame}
\begin{center} {\Huge 
\input{fin.pgf}
} \end{center}
\end{frame}

%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%			CORRECTION
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%
\begin{frame}
 \begin{center}
  \Huge{ CORRECTION }
 \end{center}

\end{frame}



%%%%%%%%%%%%%%%%%%%%
%%% Question (1) %%%
%%%%%%%%%%%%%%%%%%%%
\section{Question (1)}

\begin{frame}
\frametitle{\textbf{Question (1)}}
%
%\vspace*{1cm}
%

{\centering 
	\makebox[0pt]{%
	\begin{tabular}{ll}
	    {\Huge Si on a :} &\\ 
		&\\
		&{\Huge liste=[2,5,12,23]}\\[0.2cm]
		&{\Huge liste[2]=3}\\
		&\\
	    {\Huge Alors } &
	\end{tabular}
	}
	\par
}

\bigskip

\begin{block}{}
\begin{center}
 {\Huge liste renvoie [3,5,12,23] \textcolor{red}{FAUX}}\\
 {\Huge on obtient [2,5,\textcolor{red}{3},23]}
\end{center}
\end{block}
\end{frame}

%%%%%%%%%%%%%%%%%%%%
%%% Question (2) %%%
%%%%%%%%%%%%%%%%%%%%
\section{Question (2)}

\begin{frame}
\frametitle{\textbf{Question (2)}}

{\centering
	\makebox[0pt]{%
	\begin{tabular}{ll}
	    {\Huge Si on a :}&\\ 
	    &\\
		&{\Huge liste=[2,5,12,23]}\\[0.2cm]
		&{\Huge liste[2]=3}\\
		&\\
	    {\Huge Alors } &
	\end{tabular}
	}
	\par
}

\bigskip

\begin{block}{}
\begin{center}
 \Huge liste renvoie [2,5,\textcolor{red}{3},23] \textcolor{green}{VRAI}
\end{center}
\end{block}
\end{frame}

%%%%%%%%%%%%%%%%%%%%
%%% Question (3) %%%
%%%%%%%%%%%%%%%%%%%%
\section{Question (3)}

\begin{frame}
\frametitle{\textbf{Question (3)}}

{\centering
	\makebox[0pt]{%
	\begin{tabular}{ll}
	    {\Huge Si on a :}&\\ 
	    &\\
		&{\Huge liste=[1,2,3,\textcolor{red}{4}]}\\[0.2cm]
		&{\Huge liste.pop(\textcolor{red}{3})}\\
		&\\
	    {\Huge Alors } &
	\end{tabular}
	}
	\par
}

\bigskip

\begin{block}{}
\begin{center}
 {\Huge liste renvoie [1,2,4] \textcolor{red}{FAUX}}\\
 {\Large on supprime l'élément de \textcolor{red}{rang 3}}
\end{center}
\end{block}
\end{frame}



%%%%%%%%%%%%%%%%%%%%
%%% Question (4) %%%
%%%%%%%%%%%%%%%%%%%%
\section{Question (4)}

\bigskip
\begin{frame}
\frametitle{\textbf{Question (4)}}

{\centering
	\makebox[0pt]{%
	\begin{tabular}{ll}
	    {\Huge Si on a :}&\\ 
	    &\\
		&{\Huge liste=[1,2,3,\textcolor{red}{4}]}\\[0.2cm]
		&{\Huge liste.pop(\textcolor{red}{3})}\\
		&\\
	    {\Huge Alors } &
	\end{tabular}
	}
	\par
}

\bigskip

\begin{block}{}
\begin{center}
 \Huge liste renvoie [1,2,3] \textcolor{green}{VRAI}
\end{center}
\end{block}
\end{frame}

%%%%%%%%%%%%%%%%%%%%
%%% Question (5) %%%
%%%%%%%%%%%%%%%%%%%%
\section{Question (5)}

\begin{frame}
\frametitle{\textbf{Question (5)}}

{\centering
	\makebox[0pt]{%
	\begin{tabular}{ll}
	    {\Huge Si on a :}&\\ 
	    &\\
		&{\Huge liste=[1,2,\textcolor{red}{3},4,5]}\\[0.2cm]
		&{\Huge liste.\textcolor{red}{remove(3)}}\\
		&\\
	    {\Huge Alors } &
	\end{tabular}
	}
	\par
}

\bigskip

\begin{block}{}
\begin{center}
 \Huge liste renvoie [1,2,4,5] \textcolor{green}{VRAI}\\
 \Large on supprime l'élément de \textcolor{red}{valeur 3}
\end{center}
\end{block}
\end{frame}


%%%%%%%%%%%%%%%%%%%%
%%% Question (6) %%%
%%%%%%%%%%%%%%%%%%%%
\section{Question (6)}

\begin{frame}
\frametitle{\textbf{Question (6)}}

{\centering
	\makebox[0pt]{%
	\begin{tabular}{ll}
	    {\Huge Si on a :}&\\ 
	    &\\
		&{\Huge liste=[1,2,\textcolor{red}{3},4,5]}\\[0.2cm]
		&{\Huge liste.\textcolor{red}{remove(3)}}\\
		&\\
	    {\Huge Alors } &
	\end{tabular}
	}
	\par
}

\bigskip

\begin{block}{}
\begin{center}
 \Huge liste renvoie [1,2,3,5] \textcolor{red}{FAUX}
\end{center}
\end{block}
\end{frame}

%\begin{frame}
%	\begin{block}{}
%	\begin{center}
%	{\Large
%	Pour chacune des questions suivantes, déterminer \underline{la} bonne réponse.
%	}
%	\end{center}
%	\end{block}
%\end{frame}

%%%%%%%%%%%%%%%%%%%%
%%% Question (7) %%%
%%%%%%%%%%%%%%%%%%%%
\section{Question (7)}

\begin{frame}
\frametitle{\textbf{Question (7)}}

{\centering
	\makebox[0pt]{%
	\begin{tabular}{ll}
	    {\Huge Si on a :}&\\ 
	    &\\
		&{\Huge liste=[5,12,17,23,\textcolor{red}{52}]}\\
		&\\
	    {\Huge Alors } &
	\end{tabular}
	}
	\par
}

\bigskip

\begin{block}{}
\begin{center}
 \Huge \textcolor{red}{liste[-1]} renvoie [4,11,16,22,51] \textcolor{red}{FAUX}\\
 \Large liste[-1] renvoie le dernier élément
\end{center}
\end{block}
\end{frame}

%%%%%%%%%%%%%%%%%%%%
%%% Question (8) %%%
%%%%%%%%%%%%%%%%%%%%
\section{Question (8)}

\begin{frame}
\frametitle{\textbf{Question (8)}}

{\centering
	\makebox[0pt]{%
	\begin{tabular}{ll}
	    {\Huge Si on a :}&\\ 
	    &\\
		&{\Huge liste=[5,12,17,23,\textcolor{red}{52}]}\\
		&\\
	    {\Huge Alors } &
	\end{tabular}
	}
	\par
}

\bigskip

\begin{block}{}
\begin{center}
 \Huge \textcolor{red}{liste[-1]} renvoie 52 \textcolor{green}{VRAI}
\end{center}
\end{block}
\end{frame}

%%%%%%%%%%%%%%%%%%%%
%%% Question (9) %%%
%%%%%%%%%%%%%%%%%%%%
\section{Question (9)}

\begin{frame}
\frametitle{\textbf{Question (9)}}

{\centering
	\makebox[0pt]{%
	\begin{tabular}{ll}
	    {\Huge Si on a :}&\\ 
%	    &\\
		&{\Huge L1=[7,8,9]}\\[.2cm]
		&{\Huge L2=L1}\\[.2cm]
		&{\Huge \textcolor{red}{L1.remove(L1[0])}}\\
%		&\\
	    {\Huge Alors }&
	\end{tabular}
	}
	\par
}

\bigskip

\begin{block}{}
\begin{center}
 \Huge L2 renvoie [7,8,9] \textcolor{red}{FAUX}\\
 \Large \textcolor{red}{L1.remove(L1[0])} supprime l'élément de rang 0 de L1 \textcolor{red}{et de} L2
\end{center}
\end{block}
\end{frame}


%%%%%%%%%%%%%%%%%%%%%
%%% Question (10) %%%
%%%%%%%%%%%%%%%%%%%%%
\section{Question (10)}

\begin{frame}
\frametitle{\textbf{Question (10)}}

{\centering
	\makebox[0pt]{%
	\begin{tabular}{ll}
	    {\Huge Si on a :} &\\ 
	    &\\
		&{\Huge L1=[7,8,9]}\\[.2cm]
		&{\Huge L2=L1}\\[.2cm]
		&{\Huge L1.remove(L1[0])}\\
%		&\\
	    {\Huge Alors } &
	\end{tabular}
	}
	\par
}

\bigskip

\begin{block}{}
\begin{center}
 \Huge L2 renvoie [8,9] \textcolor{green}{VRAI}
\end{center}
\end{block}
\end{frame}

\begin{frame}
\begin{center} {\Huge 
\input{./images/fin.tkz}
} \end{center}
\end{frame}

\end{document}
