{ "cells": [ { "cell_type": "markdown", "id": "afa2c4fe", "metadata": { "slideshow": { "slide_type": "slide" } }, "source": [ "# Fonctions" ] }, { "cell_type": "markdown", "id": "5bbc90e5", "metadata": { "slideshow": { "slide_type": "slide" } }, "source": [ "## Prélude" ] }, { "cell_type": "markdown", "id": "b2fa3cf1", "metadata": { "slideshow": { "slide_type": "fragment" } }, "source": [ "| | |\n", "|----|-----|\n", "| | J'ai pu utiliser `info-111`, JupyterHub, GitLab, PLaTon, eCampus |" ] }, { "cell_type": "markdown", "id": "3552c890", "metadata": { "slideshow": { "slide_type": "fragment" } }, "source": [ "| | |\n", "|----|-----|\n", "| | J'ai fini les TD et TP (hors exercices ♣) |\n", "\n", "\n", "" ] }, { "cell_type": "markdown", "id": "29dffcaf", "metadata": { "slideshow": { "slide_type": "subslide" } }, "source": [ "### Résumé des épisodes précédents ...\n", "\n", "Pour le moment nous avons vu:" ] }, { "cell_type": "markdown", "id": "d8cbf443", "metadata": { "slideshow": { "slide_type": "fragment" } }, "source": [ "- Expressions: `3 * (4+5)`, `1 < x and x < 5 or y == 3`" ] }, { "cell_type": "markdown", "id": "86abe22f", "metadata": { "slideshow": { "slide_type": "fragment" } }, "source": [ "- Variables, types, affectation: `int n = 1 + 1`" ] }, { "cell_type": "markdown", "id": "e9175d15", "metadata": { "slideshow": { "slide_type": "fragment" } }, "source": [ "- Instruction conditionnelle: `if`" ] }, { "cell_type": "markdown", "id": "fe237f33", "metadata": { "slideshow": { "slide_type": "fragment" } }, "source": [ "- Instructions itératives: `while`, `do ... while`, `for`" ] }, { "cell_type": "markdown", "id": "0f677c42", "metadata": { "slideshow": { "slide_type": "fragment" } }, "source": [ "Tout ce qui est calculable par un ordinateur peut être programmé\n", "uniquement avec ces instructions \n", "(ou presque: il faudrait un accès un peu plus souple à la mémoire)" ] }, { "cell_type": "markdown", "id": "fef1b6e1", "metadata": { "slideshow": { "slide_type": "fragment" } }, "source": [ "**Pourquoi aller plus loin?**" ] }, { "cell_type": "markdown", "id": "bea81c3f", "metadata": { "slideshow": { "slide_type": "fragment" } }, "source": [ "**