<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Python - les bases :: allopizza</title>
    <link>//localhost:1313/docs/python_bases/index.html</link>
    <description>Les bases en Python Le parcours d&#39;apprentissage qui est proposé ici s&#39;articule sur 5 chapitres: C1 Calculer avec le langage Python C2 Variables et opérations sur ces variables C3 Boucles (bornées) et listes C4 Structures conditionnelles et boucles non bornées C5 Fonctions Ces chapitres seront être approfondis dans la section Python avancé. Rubriques:</description>
    <generator>Hugo</generator>
    <language>fr</language>
    <atom:link href="//localhost:1313/docs/python_bases/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>calculer en python</title>
      <link>//localhost:1313/docs/python_bases/generalites/page2_d/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/generalites/page2_d/index.html</guid>
      <description>Utiliser l’ordinateur comme une calculatrice Diversité apparente des calculatrices exemple de calculatrices programmables Les calculatrices permettent d’executer les mêmes calculs et donnent les mêmes résultats. Leurs fonctions (boutons) peuvent sembler différents, mais l’interprétation par la machine est la même. La différence se fait dans l’interface proposée à l’utilisateur.</description>
    </item>
    <item>
      <title>introduction aux variables</title>
      <link>//localhost:1313/docs/python_bases/variables/page5_d/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/variables/page5_d/index.html</guid>
      <description>utiliser des variables pour mémoriser des état, pensée algorithmique</description>
    </item>
    <item>
      <title>calculer en python</title>
      <link>//localhost:1313/docs/python_bases/generalites/page2/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/generalites/page2/index.html</guid>
      <description>Les types de base: numériques, string, booléens En python, les objets natifs de base ont pour type:&#xA;nombre entier: integer ou int en Python nombre réel décimal: float chaine de caractères: str les valeurs logiques: booléen bool Lorsque l’on présente une valeur dans le programme, le langage s’adapte selon le type, comme on le verra plus loin.</description>
    </item>
    <item>
      <title>variables</title>
      <link>//localhost:1313/docs/python_bases/variables/page4_d/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/variables/page4_d/index.html</guid>
      <description>bases de la programmation python, utiliser des variables</description>
    </item>
    <item>
      <title>variables, opérations</title>
      <link>//localhost:1313/docs/python_bases/variables/page4/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/variables/page4/index.html</guid>
      <description>types de base et opérations sur les variables</description>
    </item>
    <item>
      <title>conditions</title>
      <link>//localhost:1313/docs/python_bases/conditions/page2_d/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/conditions/page2_d/index.html</guid>
      <description>Editeur Python Au choix:&#xA;Utiliser un notebook. Dans une même cellule: Saisir une ou plusieurs lignes de code Python, puis appuyer simultanement sur Majuscule(Shift) + Entrée pour executer le code.&#xA;Utiliser l’editeur Pyzo: Mettre ## avant chaque script pour créer une cellule. Executer la cellule et passer à la suivante avec MAJ+CTRL+ENTREE.&#xA;Utiliser l’editeur Spyder: Mettre #%% avant chaque script pour créer une cellule. Executer la cellule et passer à la suivante avec MAJ+ENTREE.</description>
    </item>
    <item>
      <title>TP conditions</title>
      <link>//localhost:1313/docs/python_bases/conditions/page3_d/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/conditions/page3_d/index.html</guid>
      <description>TP3: Structures conditionnelles Editeur Python Au choix, utilisez:&#xA;un notebook. Dans une même cellule: Saisir une ou plusieurs lignes de code Python, puis appuyer simultanement sur Majuscule(Shift) + Entrée pour executer le code.&#xA;l’editeur Pyzo: Mettre ## avant chaque script pour créer une cellule. Executer la cellule et passer à la suivante avec MAJ+CTRL+ENTREE.</description>
    </item>
    <item>
      <title>conditions</title>
      <link>//localhost:1313/docs/python_bases/conditions/page2/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/conditions/page2/index.html</guid>
      <description>conditions, boucles non bornées, jeu de devinettes</description>
    </item>
    <item>
      <title>boucles</title>
      <link>//localhost:1313/docs/python_bases/boucles/page5/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/boucles/page5/index.html</guid>
      <description>cours sur les boucles, bornées et non bornées, notion d&#39;itérable, fonctions natives</description>
    </item>
    <item>
      <title>listes</title>
      <link>//localhost:1313/docs/python_bases/boucles/page2/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/boucles/page2/index.html</guid>
      <description>cours, parcours de liste, méthodes de liste, boucles bornées, tracé de graphique</description>
    </item>
    <item>
      <title>TP1 listes</title>
      <link>//localhost:1313/docs/python_bases/boucles/page3/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/boucles/page3/index.html</guid>
      <description>TP, liste, dictionnaire, indices, modifier supprimer et ajouter des éléments, liste de listes, matrices, tracé graphique</description>
    </item>
    <item>
      <title>fonctions</title>
      <link>//localhost:1313/docs/python_bases/fonctions/page2/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/fonctions/page2/index.html</guid>
      <description>cours et exercices sur les fonctions, paramètres</description>
    </item>
    <item>
      <title>lecture - ecriture fichier</title>
      <link>//localhost:1313/docs/python_bases/es/page54/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/es/page54/index.html</guid>
      <description>lire et ecrire dans un fichier python, fonctions ord et chr, boucles</description>
    </item>
    <item>
      <title>TP fonctions python</title>
      <link>//localhost:1313/docs/python_bases/fonctions/page51/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/fonctions/page51/index.html</guid>
      <description>TP sur les fonctions python, et les boucles</description>
    </item>
    <item>
      <title>installation python</title>
      <link>//localhost:1313/docs/python_bases/generalites/page4/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/generalites/page4/index.html</guid>
      <description>Installer un IDE python Dans ce tutoriel, vous allez installer un editeur Python et suivre un premier tutoriel. Vous aurez besoin d’un ordinateur, PC, Linux ou mac.&#xA;Vous allez faire vos premiers pas dans l’apprentissage du langage.&#xA;L’IDE le plus simple et complet à utiliser sera Thonny:&#xA;Rendez vous à la page de telechargement Suivre les instructions d’installation Suivre un tuto python courspython.com</description>
    </item>
    <item>
      <title>fonctions et Turtle</title>
      <link>//localhost:1313/docs/python_bases/dessiner/page3/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/dessiner/page3/index.html</guid>
      <description>Le module Turtle permet d’avoir un environnement simple muni d’une interface graphique.&#xA;La page suivante présente un aide-mémoire avec les principales instructions.&#xA;Il est conseillé d’avoir bien lu et traité les exemples des pages:&#xA;TP boucles et fonctions Cours sur les fonctions Premiers tracés Script initial Ces exemples utilisent une boucle bornée pour répéter des consignes (for .. in range)</description>
    </item>
    <item>
      <title>Travaux pratiques</title>
      <link>//localhost:1313/docs/python_bases/tp/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/tp/index.html</guid>
      <description>Travaux pratiques et mini-projets</description>
    </item>
    <item>
      <title>boucles</title>
      <link>//localhost:1313/docs/python_bases/boucles/page1/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/boucles/page1/index.html</guid>
      <description>boucle for, indices, somme, comprehension de liste, dictionnaire</description>
    </item>
    <item>
      <title>Exercices boucles</title>
      <link>//localhost:1313/docs/python_bases/boucles/ex1/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/boucles/ex1/index.html</guid>
      <description>Exercices sur les boucles et listes Flash card 1 Script A&#xA;for i in L : print(i) Script B&#xA;for i in range(len(L)) : print(i) &lt;/ol&gt; &lt;/div&gt; &lt;div class=&#34;flip-card-back&#34;&gt; &lt;h1&gt;Réponses&lt;/h1&gt; &lt;ol&gt; &lt;li&gt;P I Z Z A&lt;/li&gt; &lt;li&gt;0 1 2 3 4&lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; Flash card 2 Script A :</description>
    </item>
    <item>
      <title>Exercices boucles</title>
      <link>//localhost:1313/docs/python_bases/boucles/ex2/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/boucles/ex2/index.html</guid>
      <description>Exercices sur les boucles Flash card 1 Script A&#xA;for i in L : print(i) Script B&#xA;for i in range(len(L)) : print(i) &lt;/ol&gt; &lt;/div&gt; &lt;div class=&#34;flip-card-back&#34;&gt; &lt;h1&gt;Réponses&lt;/h1&gt; &lt;ol&gt; &lt;li&gt;P I Z Z A&lt;/li&gt; &lt;li&gt;0 1 2 3 4&lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; Flash card 2 Script A</description>
    </item>
    <item>
      <title>Exercices conditions</title>
      <link>//localhost:1313/docs/python_bases/conditions/ex1/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/conditions/ex1/index.html</guid>
      <description>Exercices sur les conditions Flash cards Flash card 1 Flash card 2 Flash card 3 Script A :</description>
    </item>
    <item>
      <title>Exercices conditions</title>
      <link>//localhost:1313/docs/python_bases/conditions/ex2/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/conditions/ex2/index.html</guid>
      <description>Exercices sur les conditions Flash cards Flash card 1 Flash card 2 voyelles = [&#39;a&#39;,&#39;e&#39;,&#39;i&#39;,&#39;o&#39;,&#39;u&#39;,&#39;y&#39;] laby = {&#39;1&#39;:{&#39;2&#39;:{&#39;3&#39;:&#39;9&#39;,&#39;5&#39;:&#39;6&#39;},&#39;7&#39;:&#39;8&#39;}} Flash card 3 Script A :</description>
    </item>
    <item>
      <title>Exercices fonctions</title>
      <link>//localhost:1313/docs/python_bases/fonctions/ex1/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/fonctions/ex1/index.html</guid>
      <description>Exercices sur les fonctions Flash card 1 Voici le script d’une fonction avec paramètres :&#xA;def servir_sucre(client,nombre=0): &#34;&#34;&#34;servir le nombre de sucre dans le café du client&#34;&#34;&#34; return &#39;{} veut son café avec {} sucre(s)&#39;.format(client,nombre) &lt;ol&gt; &lt;li&gt;servir_sucre(&#39;James&#39;)&lt;/li&gt; &lt;li&gt;servir_sucre(&#39;Johanna&#39;,3)&lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; &lt;div class=&#34;flip-card-back&#34; style=&#34;font-size: 14px&#34;&gt; &lt;h1&gt;Réponses&lt;/h1&gt; &lt;ol&gt; &lt;li&gt;James veut son café avec 0 sucre(s)&lt;/li&gt; &lt;li&gt;Johanna veut son café avec 3 sucre(s)&lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; Flash card 2 def calculeP(s, p): &#34;&#34;&#34;calculer le pourcentage p d&#39;une somme s&#34;&#34;&#34; return s * p / 100 Flash card 3 Soit la liste L:</description>
    </item>
    <item>
      <title>Exercices fonctions</title>
      <link>//localhost:1313/docs/python_bases/fonctions/ex2/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/fonctions/ex2/index.html</guid>
      <description>Exercices sur les fonctions Flash card 1 Voici le script d’une fonction avec paramètres :&#xA;def servir_sucre(client,nombre=0): &#34;&#34;&#34;servir le nombre de sucre dans le café du client&#34;&#34;&#34; return &#39;{} veut son café avec {} sucre(s)&#39;.format(client,nombre) &lt;ol&gt; &lt;li&gt;servir_sucre(&#39;James&#39;)&lt;/li&gt; &lt;li&gt;servir_sucre(&#39;Johanna&#39;,3)&lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; &lt;div class=&#34;flip-card-back&#34; style=&#34;font-size: 14px&#34;&gt; &lt;h1&gt;Réponses&lt;/h1&gt; &lt;ol&gt; &lt;li&gt;James veut son café avec 0 sucre(s)&lt;/li&gt; &lt;li&gt;Johanna veut son café avec 3 sucre(s)&lt;/li&gt; &lt;/ol&gt; &lt;/div&gt; Flash card 2 Script A</description>
    </item>
    <item>
      <title>Exercices séquences</title>
      <link>//localhost:1313/docs/python_bases/variables/ex2/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/variables/ex2/index.html</guid>
      <description>Exercices sur les variables et opérations Révisions : flash cards Lire la question Chercher la réponse Cliquer sur la carte pour vérifier la reponse. Flash card 1 Flash card 2 L = [[&#39;a&#39;, &#39;b&#39;], [&#39;c&#39;, &#39;d&#39;], [&#39;e&#39;, &#39;f&#39;]] Flash card 3 tictactoe = [[&#39;X&#39;, &#39;O&#39;, &#39;O&#39;], [&#39;O&#39;, &#39;O&#39;, &#39;O&#39;], [&#39;O&#39;, &#39;O&#39;, &#39;X&#39;]] Flash card 4 Soit la liste T suivante:</description>
    </item>
    <item>
      <title>Exercices séquences 2</title>
      <link>//localhost:1313/docs/python_bases/variables/ex3/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/variables/ex3/index.html</guid>
      <description>Exercices sur les séquences et boucles Révisions : flash cards Lire la question Chercher la réponse Cliquer sur la carte pour vérifier la reponse. Flash card 1 Soit le programme 1 suivant:</description>
    </item>
    <item>
      <title>Exercices variables</title>
      <link>//localhost:1313/docs/python_bases/variables/ex1/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/variables/ex1/index.html</guid>
      <description>Exercices sur les variables et opérations Révisions : flash cards Lire la question Chercher la réponse Cliquer sur la carte pour vérifier la reponse. Flash card 1 Flash card 2 Flash card 3 Flash card 4 Flash card 5 Flash card 6 L = [&#39;lundi&#39;, &#39;mardi&#39;, &#39;mercredi&#39;] Flash card 7 L = [&#39;lundi&#39;, &#39;mardi&#39;, &#39;mercredi&#39;] Flash card 8 L = [[&#39;a&#39;, &#39;b&#39;], [&#39;c&#39;, &#39;d&#39;], [&#39;e&#39;, &#39;f&#39;]] Flash card 9 tictactoe = [[&#39;X&#39;, &#39;O&#39;, &#39;O&#39;], [&#39;O&#39;, &#39;O&#39;, &#39;O&#39;], [&#39;O&#39;, &#39;O&#39;, &#39;X&#39;]] Relire le cours Lien vers la page : Variables</description>
    </item>
    <item>
      <title>fonctions pour calculer</title>
      <link>//localhost:1313/docs/python_bases/fonctions/page52/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/fonctions/page52/index.html</guid>
      <description>fonctions avec valeur de retour, pour calculer et repeter des calculs</description>
    </item>
    <item>
      <title>langage informatique</title>
      <link>//localhost:1313/docs/python_bases/generalites/page3/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/generalites/page3/index.html</guid>
      <description>Langage informatique Langage humain et langage machine Dans la vidéo suivante, on voit que le langage utilisé pour les machines est un langage structuré, non ambigü, comme on l’utiliserait pour commander un robot. Ces instructions passent alors par un interpréteur, qui traduit celui-ci en langage machine et en binaire.</description>
    </item>
    <item>
      <title>python</title>
      <link>//localhost:1313/docs/python_bases/generalites/page1/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/generalites/page1/index.html</guid>
      <description>Naissance de Python Python, créé en 1991, est désormais le principal langage de programmation dans les domaines du Machine Learning, du Big Data et de la Data Science.&#xA;Son créateur est un néerlandais nommé Guido van Rossum, qui a cherché à faire un langage très simple et lisible. Certains prétendent même que lire du code Python équivaut à lire de l’anglais.</description>
    </item>
    <item>
      <title>solution tp chiffrement</title>
      <link>//localhost:1313/docs/python_bases/es/page541/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/es/page541/index.html</guid>
      <description>Solution pour le TP chiffrement&#xA;# dechiffrement with open(&#39;texte_chiffre.txt&#39;,&#39;r&#39;) as f: texte = f.read() fileout = open(&#39;texte_dechiffre.txt&#39;,&#39;w&#39;) for c in texte: if c != &#34;\\&#34;: rang = ord(c) fileout.write(chr(rang-1)) else: fileout.write(&#34;\n&#34;) fileout.close() # en option with open(&#39;texte_dechiffre.txt&#39;,&#39;r&#39;) as f3: texte = f3.read() #texte Si vous rencontrez un problème avec l’encodage des caractères, utilisez cette version:&#xA;Solution pour le TP chiffrement&#xA;# dechiffrement with open(&#39;texte_chiffre.txt&#39;,&#39;r&#39;) as f: texte = f.read() fileout = open(&#39;texte_dechiffre.txt&#39;,&#39;w&#39;) for c in texte: if c != &#34;\\&#34;: try: rang = ord(c) fileout.write(chr(rang-1)) except: # on ne parvient pas a encoder c # on l&#39;ecrit sans decalage fileout.write(c) else: # on ecrit le retour a la ligne \n # comme c&#39;etait le cas fileout.write(&#34;\n&#34;) fileout.close() # en option with open(&#39;texte_dechiffre.txt&#39;,&#39;r&#39;) as f3: texte = f3.read() #texte</description>
    </item>
    <item>
      <title>structures conditionnelles</title>
      <link>//localhost:1313/docs/python_bases/conditions/page1/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/conditions/page1/index.html</guid>
      <description>Conditions Instruction conditionnelle Définition : Une instruction conditionnelle vérifie si une certaine condition est vraie avant d’executer son code :&#xA;if instruction_conditionnelle : code_à_executer Exemple :&#xA;if prix_camion &gt; 10000: print(&#39;Trop cher&#39;) Tests logiques Il s’agit d’une expression booléenne qui est évaluée est qui renvoie True si elle est vrai, False sinon.</description>
    </item>
    <item>
      <title>TP1 listes NSI_1</title>
      <link>//localhost:1313/docs/python_bases/boucles/page3_d/index.html</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>//localhost:1313/docs/python_bases/boucles/page3_d/index.html</guid>
      <description>liste, dictionnaire, indices, modifier supprimer et ajouter des éléments</description>
    </item>
  </channel>
</rss>