From 5b7a35fb77d60a89cf52b47963fb2debf6330e15 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Fri, 18 Feb 2022 10:42:56 +0100 Subject: [PATCH] Feat: Bilan sur les conditions --- 2nd/13_Programmation/3B_conditions.pdf | Bin 0 -> 19809 bytes 2nd/13_Programmation/3B_conditions.tex | 39 +++++++++++++++++++++++++ 2nd/13_Programmation/index.rst | 5 ++++ 3 files changed, 44 insertions(+) create mode 100644 2nd/13_Programmation/3B_conditions.pdf create mode 100644 2nd/13_Programmation/3B_conditions.tex diff --git a/2nd/13_Programmation/3B_conditions.pdf b/2nd/13_Programmation/3B_conditions.pdf new file mode 100644 index 0000000000000000000000000000000000000000..59f6f3004da60bb6ef78354ff5f899cbfb999418 GIT binary patch literal 19809 zcmce;1CVY_)-HI;)+yVzZQC|a*|u$4r)=A{U8ii@y7l!xclwLCJv|c>(Y<5q&CEA* zt;i=caz88AB9;>pp{A!{h9sU?>|GdKnHd;@WWuAvvoSD-fs5gcr$0pK3@ZD~{>TJ_dZHB{4%M<3>M1GiCMi%<%rmc7V?$ z>;M#&#`zPNwH0zDwpgy|2R;mkP&@hZY*#|pyJ1TtX&O%uRWCjXlX*e?eOtwH+khM@u`22=VA z9~;s1w5q>E3g4qk5aRGx4N5ZZg}STl8 zDmL?EUua{m>S!OoH+)bi?fmOzY_kW0K(n>{-JhSDiOwfC7{4JE1+V!ukz0~DB` z$`oE;FaZ;xTS~0iECqa%*%zF;bJpq51|#YEKQJNRYUV$%K{M?#^~sDt2DVsjQ0}RV zD11G1Z})b@xB|(2De0sr*#UqoPJd+En!h8L7-}6eA6IwJhVdTXA(8`SW_`k>c>kXM zGyGMgTM_}&8Y&(tZNoqDqr7eH6#(d{QsZtgc3! z6IWyYT>P*iBM=X9xO3Ek#KNxyUu%G>kQ1ORi9$w)y@pBp36@%VGt_-|KPxX=pDdhI zF_c14DpU*=iLcU^fO-~5D-pNRWGW4-z$j_n(gBYgCqNjPRdMbGngCwI9A43MM|0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T0Z0?fCbF_0trWuFh;<@lH0gcSh)(aKW-g%m+>WGv1uCZ{=s+9dTzr ze_HbQ(1H;2EAwA*CVatc?3!aakSi!PO+nu?FC`Un<`%F%1|F&voLQBs0IHh9!3S;` z0T0~*9krF8U!q_RJqyV*FD+jI+ynw1_~PjTRA=Mr=4|NZY~MlMdqMrKZy z21X`kPNtSlW_H9V0osFaj@Zz`0&6o|^z7L{rbL03hwoU$0vcn*0tG|^KCs91$LV_e zvn8^$B}z6*PH1+V(G)o2z;o;N<-4-8vfN%R_4#S}EFwaA;-_N8*XFz4#-==bW4lT5 z>tqv$My;J61wJn`@yoNS@}6~}e$n$wIy=9L?$y=&R~nGet@mw1zudVw`;X?yGsip@ zQf*sda7gi(#UVqr8IM?u=R6W)k9c$_RdxFOPtR1}t>18L>g$y;^(Xr88}2{IR=%R} o{c`)CrOWG2*-IK=MpJP~Vo^y2uzAR3XlZO_!lkO}>hHz{01h88)Bpeg literal 0 HcmV?d00001 diff --git a/2nd/13_Programmation/3B_conditions.tex b/2nd/13_Programmation/3B_conditions.tex new file mode 100644 index 0000000..4b691a6 --- /dev/null +++ b/2nd/13_Programmation/3B_conditions.tex @@ -0,0 +1,39 @@ +\documentclass[a4paper,10pt]{article} +\usepackage{myXsim} + +\author{Benjamin Bertrand} +\title{Programmation - Cours} +\date{Février 2022} + +\pagestyle{empty} + +\begin{document} + +\maketitle +\setcounter{section}{2} + +\section{Conditions \lstinline{if/elif/else}} + +Quand on veut gérer différent cas de figure, on utilise les mots clés \lstinline{if/elif/else}. + +\begin{center} + \begin{minipage}{0.8\linewidth} + \begin{lstlisting} +age = str(input{Quel age as tu?}) +if age < 2: # si + print("Tu es un bébé") # alors +elif age < 18: #sinon si + print("Tu n'es pas majeur") # alors + print("Tu peux passer le permis") +elif age < 50: #sinon si + print("Tu as moins de la moitier d'un siècle") #alors +else: #sinon + print("Plus d'un demi siècle!") +print("J'ai plus rien à dire")\end{lstlisting} + \end{minipage} +\end{center} + +\paragraph{Remarque:} Il faut faire attention à l'indentation. C'est elle qui détermine où s'arrête le alors. + + +\end{document} diff --git a/2nd/13_Programmation/index.rst b/2nd/13_Programmation/index.rst index 0caf218..9a6c69b 100644 --- a/2nd/13_Programmation/index.rst +++ b/2nd/13_Programmation/index.rst @@ -77,6 +77,11 @@ Traduction algo en français en programme en python `Conditions if <./3E_conditions.ipynb>`_ +.. image:: ./3B_conditions.pdf + :height: 200px + :alt: Les conditions + + Étape 4: Boucle for -------------------