Contents
Index
Search
Préambule
IDLE
Scripts
Variables, types et opérateurs
Noms de variables
Le type int (integer: nombres entiers)
Le type float (nombres en virgule flottante)
Les fonctions mathématiques
Le type str (string : chaîne de caractères)
Le type list (liste)
Le type bool (booléen)
Le type dict (dictionnaire)
Le type tuple
Autres types
Programmation Orientée Objet (POO)
Immuable vs mutable
Exercices 1
Exercice 1.1
Exercice 1.2
Exercice 1.3
Exercice 1.4
Exercice 1.5
Exercice 1.6
Les conditions (instructions if, elif, else)
L'instruction if
L'instruction else
L'instruction elif
Exercices 2
Exercice 2.1
Exercice 2.2
Exercice 2.3
Exercice 2.4
Exercice 2.5
Les boucles (instructions for, while)
L'instruction while
L'instruction for
Exercices 3
Exercice 3.1
Exercice 3.2
Exercice 3.3
Exercice 3.4
Exercice 3.5
Exercice 3.6
Exercice 3.7
Exercice 3.8
Exercice 3.9
Les fonctions
L'instruction def
Exemple n°1
Exemple n°2
Exemple n°3
Exemple n°4
Exemple n°5
Exemple n°6
Portée de variables: variables globales et locales
Annexe: la compréhension de listes
Exercices 4
Exercice 4.1
Exercice 4.2
Exercice 4.3
Exercice 4.4
Exercice 4.5
Exercice 4.6
Exercice 4.7
Exercice 4.8
Search: