Commit 3d3ad5f29a4e81aa72ee772176a83c38a04b3bbc

Authored by Rémi Emonet
1 parent 6db95fe9ac
Exists in master

Ajout qq éléments indicage

Showing 34 changed files with 1153 additions and 37 deletions

01-cours-outils-info/index.html View file @ 3d3ad5f
... ... @@ -7,7 +7,7 @@
7 7 <head>
8 8 <meta charset="utf-8">
9 9 <meta http-equiv="X-UA-Compatible" content="IE=edge">
10   - <meta http-equiv="last-modified" content="2018-09-27 11:19:56 +0200">
  10 + <meta http-equiv="last-modified" content="2018-10-08 08:12:02 -0500">
11 11 <meta name="viewport" content="width=device-width, initial-scale=1">
12 12 <!-- meta "search-domain" used for google site search function google_search() -->
13 13 <meta name="search-domain" value="">
... ... @@ -136,6 +136,10 @@
136 136 <li><a href="../20-cours-info-l2/">〚Cours〛Informatique (L2)</a></li>
137 137  
138 138 <li><a href="../21-liste-en-comprehension/">Listes en compréhension</a></li>
  139 +
  140 + <li><a href="../22-list-indices-avances/">Indexage avancé de listes</a></li>
  141 +
  142 + <li><a href="../23-creation-numpy/">Introduction Numpy</a></li>
139 143  
140 144 <li role="separator" class="divider"></li>
141 145 <li><a href="../aio/">All in one page (Beta)</a></li>
02-intro-outils-info/index.html View file @ 3d3ad5f
... ... @@ -7,7 +7,7 @@
7 7 <head>
8 8 <meta charset="utf-8">
9 9 <meta http-equiv="X-UA-Compatible" content="IE=edge">
10   - <meta http-equiv="last-modified" content="2018-09-27 11:19:56 +0200">
  10 + <meta http-equiv="last-modified" content="2018-10-08 08:12:02 -0500">
11 11 <meta name="viewport" content="width=device-width, initial-scale=1">
12 12 <!-- meta "search-domain" used for google site search function google_search() -->
13 13 <meta name="search-domain" value="">
... ... @@ -136,6 +136,10 @@
136 136 <li><a href="../20-cours-info-l2/">〚Cours〛Informatique (L2)</a></li>
137 137  
138 138 <li><a href="../21-liste-en-comprehension/">Listes en compréhension</a></li>
  139 +
  140 + <li><a href="../22-list-indices-avances/">Indexage avancé de listes</a></li>
  141 +
  142 + <li><a href="../23-creation-numpy/">Introduction Numpy</a></li>
139 143  
140 144 <li role="separator" class="divider"></li>
141 145 <li><a href="../aio/">All in one page (Beta)</a></li>
03-terminal-et-bash/index.html View file @ 3d3ad5f
... ... @@ -7,7 +7,7 @@
7 7 <head>
8 8 <meta charset="utf-8">
9 9 <meta http-equiv="X-UA-Compatible" content="IE=edge">
10   - <meta http-equiv="last-modified" content="2018-09-27 11:19:56 +0200">
  10 + <meta http-equiv="last-modified" content="2018-10-08 08:12:02 -0500">
11 11 <meta name="viewport" content="width=device-width, initial-scale=1">
12 12 <!-- meta "search-domain" used for google site search function google_search() -->
13 13 <meta name="search-domain" value="">
... ... @@ -136,6 +136,10 @@
136 136 <li><a href="../20-cours-info-l2/">〚Cours〛Informatique (L2)</a></li>
137 137  
138 138 <li><a href="../21-liste-en-comprehension/">Listes en compréhension</a></li>
  139 +
  140 + <li><a href="../22-list-indices-avances/">Indexage avancé de listes</a></li>
  141 +
  142 + <li><a href="../23-creation-numpy/">Introduction Numpy</a></li>
139 143  
140 144 <li role="separator" class="divider"></li>
141 145 <li><a href="../aio/">All in one page (Beta)</a></li>
04-bash-et-chemins/index.html View file @ 3d3ad5f
... ... @@ -7,7 +7,7 @@
7 7 <head>
8 8 <meta charset="utf-8">
9 9 <meta http-equiv="X-UA-Compatible" content="IE=edge">
10   - <meta http-equiv="last-modified" content="2018-09-27 11:19:56 +0200">
  10 + <meta http-equiv="last-modified" content="2018-10-08 08:12:02 -0500">
11 11 <meta name="viewport" content="width=device-width, initial-scale=1">
12 12 <!-- meta "search-domain" used for google site search function google_search() -->
13 13 <meta name="search-domain" value="">
... ... @@ -136,6 +136,10 @@
136 136 <li><a href="../20-cours-info-l2/">〚Cours〛Informatique (L2)</a></li>
137 137  
138 138 <li><a href="../21-liste-en-comprehension/">Listes en compréhension</a></li>
  139 +
  140 + <li><a href="../22-list-indices-avances/">Indexage avancé de listes</a></li>
  141 +
  142 + <li><a href="../23-creation-numpy/">Introduction Numpy</a></li>
139 143  
140 144 <li role="separator" class="divider"></li>
141 145 <li><a href="../aio/">All in one page (Beta)</a></li>
05-python-intro/index.html View file @ 3d3ad5f
... ... @@ -7,7 +7,7 @@
7 7 <head>
8 8 <meta charset="utf-8">
9 9 <meta http-equiv="X-UA-Compatible" content="IE=edge">
10   - <meta http-equiv="last-modified" content="2018-09-27 11:19:56 +0200">
  10 + <meta http-equiv="last-modified" content="2018-10-08 08:12:02 -0500">
11 11 <meta name="viewport" content="width=device-width, initial-scale=1">
12 12 <!-- meta "search-domain" used for google site search function google_search() -->
13 13 <meta name="search-domain" value="">
... ... @@ -137,6 +137,10 @@
137 137  
138 138 <li><a href="../21-liste-en-comprehension/">Listes en compréhension</a></li>
139 139  
  140 + <li><a href="../22-list-indices-avances/">Indexage avancé de listes</a></li>
  141 +
  142 + <li><a href="../23-creation-numpy/">Introduction Numpy</a></li>
  143 +
140 144 <li role="separator" class="divider"></li>
141 145 <li><a href="../aio/">All in one page (Beta)</a></li>
142 146 </ul>
... ... @@ -275,7 +279,7 @@
275 279 Par convention, les fichiers contenant des programmes Python doivent avoir l’extension <code class="highlighter-rouge">.py</code>.
276 280 Ainsi, nous pouvons créer notre premier programme Python (vide) avec la comande suivante, exécutée dans le terminal:</p>
277 281  
278   -<div class="language-bash source highlighter-rouge"><div class="highlight"><pre class="highlight"><code>touch premier.py
  282 +<div class="language-bash source highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="nb">touch </span>premier.py
279 283 </code></pre></div></div>
280 284  
281 285 <p>Nous pouvons ensuite lancer ce programme (ou l’exécuter) avec la commande <code class="highlighter-rouge">python3</code>.</p>
06-operations-arith/index.html View file @ 3d3ad5f
... ... @@ -7,7 +7,7 @@
7 7 <head>
8 8 <meta charset="utf-8">
9 9 <meta http-equiv="X-UA-Compatible" content="IE=edge">
10   - <meta http-equiv="last-modified" content="2018-09-27 11:19:56 +0200">
  10 + <meta http-equiv="last-modified" content="2018-10-08 08:12:02 -0500">
11 11 <meta name="viewport" content="width=device-width, initial-scale=1">
12 12 <!-- meta "search-domain" used for google site search function google_search() -->
13 13 <meta name="search-domain" value="">
... ... @@ -136,6 +136,10 @@
136 136 <li><a href="../20-cours-info-l2/">〚Cours〛Informatique (L2)</a></li>
137 137  
138 138 <li><a href="../21-liste-en-comprehension/">Listes en compréhension</a></li>
  139 +
  140 + <li><a href="../22-list-indices-avances/">Indexage avancé de listes</a></li>
  141 +
  142 + <li><a href="../23-creation-numpy/">Introduction Numpy</a></li>
139 143  
140 144 <li role="separator" class="divider"></li>
141 145 <li><a href="../aio/">All in one page (Beta)</a></li>
07-variables-et-types/index.html View file @ 3d3ad5f
... ... @@ -7,7 +7,7 @@
7 7 <head>
8 8 <meta charset="utf-8">
9 9 <meta http-equiv="X-UA-Compatible" content="IE=edge">
10   - <meta http-equiv="last-modified" content="2018-09-27 11:19:56 +0200">
  10 + <meta http-equiv="last-modified" content="2018-10-08 08:12:02 -0500">
11 11 <meta name="viewport" content="width=device-width, initial-scale=1">
12 12 <!-- meta "search-domain" used for google site search function google_search() -->
13 13 <meta name="search-domain" value="">
... ... @@ -136,6 +136,10 @@
136 136 <li><a href="../20-cours-info-l2/">〚Cours〛Informatique (L2)</a></li>
137 137  
138 138 <li><a href="../21-liste-en-comprehension/">Listes en compréhension</a></li>
  139 +
  140 + <li><a href="../22-list-indices-avances/">Indexage avancé de listes</a></li>
  141 +
  142 + <li><a href="../23-creation-numpy/">Introduction Numpy</a></li>
139 143  
140 144 <li role="separator" class="divider"></li>
141 145 <li><a href="../aio/">All in one page (Beta)</a></li>
08-erreurs/index.html View file @ 3d3ad5f
... ... @@ -7,7 +7,7 @@
7 7 <head>
8 8 <meta charset="utf-8">
9 9 <meta http-equiv="X-UA-Compatible" content="IE=edge">
10   - <meta http-equiv="last-modified" content="2018-09-27 11:19:56 +0200">
  10 + <meta http-equiv="last-modified" content="2018-10-08 08:12:02 -0500">
11 11 <meta name="viewport" content="width=device-width, initial-scale=1">
12 12 <!-- meta "search-domain" used for google site search function google_search() -->
13 13 <meta name="search-domain" value="">
... ... @@ -136,6 +136,10 @@
136 136 <li><a href="../20-cours-info-l2/">〚Cours〛Informatique (L2)</a></li>
137 137  
138 138 <li><a href="../21-liste-en-comprehension/">Listes en compréhension</a></li>
  139 +
  140 + <li><a href="../22-list-indices-avances/">Indexage avancé de listes</a></li>
  141 +
  142 + <li><a href="../23-creation-numpy/">Introduction Numpy</a></li>
139 143  
140 144 <li role="separator" class="divider"></li>
141 145 <li><a href="../aio/">All in one page (Beta)</a></li>
09-fonction-et-aide/index.html View file @ 3d3ad5f
... ... @@ -7,7 +7,7 @@
7 7 <head>
8 8 <meta charset="utf-8">
9 9 <meta http-equiv="X-UA-Compatible" content="IE=edge">
10   - <meta http-equiv="last-modified" content="2018-09-27 11:19:56 +0200">
  10 + <meta http-equiv="last-modified" content="2018-10-08 08:12:02 -0500">
11 11 <meta name="viewport" content="width=device-width, initial-scale=1">
12 12 <!-- meta "search-domain" used for google site search function google_search() -->
13 13 <meta name="search-domain" value="">
... ... @@ -136,6 +136,10 @@
136 136 <li><a href="../20-cours-info-l2/">〚Cours〛Informatique (L2)</a></li>
137 137  
138 138 <li><a href="../21-liste-en-comprehension/">Listes en compréhension</a></li>
  139 +
  140 + <li><a href="../22-list-indices-avances/">Indexage avancé de listes</a></li>
  141 +
  142 + <li><a href="../23-creation-numpy/">Introduction Numpy</a></li>
139 143  
140 144 <li role="separator" class="divider"></li>
141 145 <li><a href="../aio/">All in one page (Beta)</a></li>
10-import-biblio/index.html View file @ 3d3ad5f
... ... @@ -7,7 +7,7 @@
7 7 <head>
8 8 <meta charset="utf-8">
9 9 <meta http-equiv="X-UA-Compatible" content="IE=edge">
10   - <meta http-equiv="last-modified" content="2018-09-27 11:19:56 +0200">
  10 + <meta http-equiv="last-modified" content="2018-10-08 08:12:02 -0500">
11 11 <meta name="viewport" content="width=device-width, initial-scale=1">
12 12 <!-- meta "search-domain" used for google site search function google_search() -->
13 13 <meta name="search-domain" value="">
... ... @@ -136,6 +136,10 @@
136 136 <li><a href="../20-cours-info-l2/">〚Cours〛Informatique (L2)</a></li>
137 137  
138 138 <li><a href="../21-liste-en-comprehension/">Listes en compréhension</a></li>
  139 +
  140 + <li><a href="../22-list-indices-avances/">Indexage avancé de listes</a></li>
  141 +
  142 + <li><a href="../23-creation-numpy/">Introduction Numpy</a></li>
139 143  
140 144 <li role="separator" class="divider"></li>
141 145 <li><a href="../aio/">All in one page (Beta)</a></li>
11-biblio-qtido/index.html View file @ 3d3ad5f
... ... @@ -7,7 +7,7 @@
7 7 <head>
8 8 <meta charset="utf-8">
9 9 <meta http-equiv="X-UA-Compatible" content="IE=edge">
10   - <meta http-equiv="last-modified" content="2018-09-27 11:19:56 +0200">
  10 + <meta http-equiv="last-modified" content="2018-10-08 08:12:02 -0500">
11 11 <meta name="viewport" content="width=device-width, initial-scale=1">
12 12 <!-- meta "search-domain" used for google site search function google_search() -->
13 13 <meta name="search-domain" value="">
... ... @@ -136,6 +136,10 @@
136 136 <li><a href="../20-cours-info-l2/">〚Cours〛Informatique (L2)</a></li>
137 137  
138 138 <li><a href="../21-liste-en-comprehension/">Listes en compréhension</a></li>
  139 +
  140 + <li><a href="../22-list-indices-avances/">Indexage avancé de listes</a></li>
  141 +
  142 + <li><a href="../23-creation-numpy/">Introduction Numpy</a></li>
139 143  
140 144 <li role="separator" class="divider"></li>
141 145 <li><a href="../aio/">All in one page (Beta)</a></li>
12-input-conversion/index.html View file @ 3d3ad5f
... ... @@ -7,7 +7,7 @@
7 7 <head>
8 8 <meta charset="utf-8">
9 9 <meta http-equiv="X-UA-Compatible" content="IE=edge">
10   - <meta http-equiv="last-modified" content="2018-09-27 11:19:56 +0200">
  10 + <meta http-equiv="last-modified" content="2018-10-08 08:12:02 -0500">
11 11 <meta name="viewport" content="width=device-width, initial-scale=1">
12 12 <!-- meta "search-domain" used for google site search function google_search() -->
13 13 <meta name="search-domain" value="">
... ... @@ -136,6 +136,10 @@
136 136 <li><a href="../20-cours-info-l2/">〚Cours〛Informatique (L2)</a></li>
137 137  
138 138 <li><a href="../21-liste-en-comprehension/">Listes en compréhension</a></li>
  139 +
  140 + <li><a href="../22-list-indices-avances/">Indexage avancé de listes</a></li>
  141 +
  142 + <li><a href="../23-creation-numpy/">Introduction Numpy</a></li>
139 143  
140 144 <li role="separator" class="divider"></li>
141 145 <li><a href="../aio/">All in one page (Beta)</a></li>
13-condition-if/index.html View file @ 3d3ad5f
... ... @@ -7,7 +7,7 @@
7 7 <head>
8 8 <meta charset="utf-8">
9 9 <meta http-equiv="X-UA-Compatible" content="IE=edge">
10   - <meta http-equiv="last-modified" content="2018-09-27 11:19:56 +0200">
  10 + <meta http-equiv="last-modified" content="2018-10-08 08:12:02 -0500">
11 11 <meta name="viewport" content="width=device-width, initial-scale=1">
12 12 <!-- meta "search-domain" used for google site search function google_search() -->
13 13 <meta name="search-domain" value="">
... ... @@ -136,6 +136,10 @@
136 136 <li><a href="../20-cours-info-l2/">〚Cours〛Informatique (L2)</a></li>
137 137  
138 138 <li><a href="../21-liste-en-comprehension/">Listes en compréhension</a></li>
  139 +
  140 + <li><a href="../22-list-indices-avances/">Indexage avancé de listes</a></li>
  141 +
  142 + <li><a href="../23-creation-numpy/">Introduction Numpy</a></li>
139 143  
140 144 <li role="separator" class="divider"></li>
141 145 <li><a href="../aio/">All in one page (Beta)</a></li>
14-conditions-else/index.html View file @ 3d3ad5f
... ... @@ -7,7 +7,7 @@
7 7 <head>
8 8 <meta charset="utf-8">
9 9 <meta http-equiv="X-UA-Compatible" content="IE=edge">
10   - <meta http-equiv="last-modified" content="2018-09-27 11:19:56 +0200">
  10 + <meta http-equiv="last-modified" content="2018-10-08 08:12:02 -0500">
11 11 <meta name="viewport" content="width=device-width, initial-scale=1">
12 12 <!-- meta "search-domain" used for google site search function google_search() -->
13 13 <meta name="search-domain" value="">
... ... @@ -136,6 +136,10 @@
136 136 <li><a href="../20-cours-info-l2/">〚Cours〛Informatique (L2)</a></li>
137 137  
138 138 <li><a href="../21-liste-en-comprehension/">Listes en compréhension</a></li>
  139 +
  140 + <li><a href="../22-list-indices-avances/">Indexage avancé de listes</a></li>
  141 +
  142 + <li><a href="../23-creation-numpy/">Introduction Numpy</a></li>
139 143  
140 144 <li role="separator" class="divider"></li>
141 145 <li><a href="../aio/">All in one page (Beta)</a></li>
15-boucle-while/index.html View file @ 3d3ad5f
... ... @@ -7,7 +7,7 @@
7 7 <head>
8 8 <meta charset="utf-8">
9 9 <meta http-equiv="X-UA-Compatible" content="IE=edge">
10   - <meta http-equiv="last-modified" content="2018-09-27 11:19:56 +0200">
  10 + <meta http-equiv="last-modified" content="2018-10-08 08:12:02 -0500">
11 11 <meta name="viewport" content="width=device-width, initial-scale=1">
12 12 <!-- meta "search-domain" used for google site search function google_search() -->
13 13 <meta name="search-domain" value="">
... ... @@ -136,6 +136,10 @@
136 136 <li><a href="../20-cours-info-l2/">〚Cours〛Informatique (L2)</a></li>
137 137  
138 138 <li><a href="../21-liste-en-comprehension/">Listes en compréhension</a></li>
  139 +
  140 + <li><a href="../22-list-indices-avances/">Indexage avancé de listes</a></li>
  141 +
  142 + <li><a href="../23-creation-numpy/">Introduction Numpy</a></li>
139 143  
140 144 <li role="separator" class="divider"></li>
141 145 <li><a href="../aio/">All in one page (Beta)</a></li>
16-listes-base/index.html View file @ 3d3ad5f
... ... @@ -7,7 +7,7 @@
7 7 <head>
8 8 <meta charset="utf-8">
9 9 <meta http-equiv="X-UA-Compatible" content="IE=edge">
10   - <meta http-equiv="last-modified" content="2018-09-27 11:19:56 +0200">
  10 + <meta http-equiv="last-modified" content="2018-10-08 08:12:02 -0500">
11 11 <meta name="viewport" content="width=device-width, initial-scale=1">
12 12 <!-- meta "search-domain" used for google site search function google_search() -->
13 13 <meta name="search-domain" value="">
... ... @@ -136,6 +136,10 @@
136 136 <li><a href="../20-cours-info-l2/">〚Cours〛Informatique (L2)</a></li>
137 137  
138 138 <li><a href="../21-liste-en-comprehension/">Listes en compréhension</a></li>
  139 +
  140 + <li><a href="../22-list-indices-avances/">Indexage avancé de listes</a></li>
  141 +
  142 + <li><a href="../23-creation-numpy/">Introduction Numpy</a></li>
139 143  
140 144 <li role="separator" class="divider"></li>
141 145 <li><a href="../aio/">All in one page (Beta)</a></li>
17-listes-plus/index.html View file @ 3d3ad5f
... ... @@ -7,7 +7,7 @@
7 7 <head>
8 8 <meta charset="utf-8">
9 9 <meta http-equiv="X-UA-Compatible" content="IE=edge">
10   - <meta http-equiv="last-modified" content="2018-09-27 11:19:56 +0200">
  10 + <meta http-equiv="last-modified" content="2018-10-08 08:12:02 -0500">
11 11 <meta name="viewport" content="width=device-width, initial-scale=1">
12 12 <!-- meta "search-domain" used for google site search function google_search() -->
13 13 <meta name="search-domain" value="">
... ... @@ -136,6 +136,10 @@
136 136 <li><a href="../20-cours-info-l2/">〚Cours〛Informatique (L2)</a></li>
137 137  
138 138 <li><a href="../21-liste-en-comprehension/">Listes en compréhension</a></li>
  139 +
  140 + <li><a href="../22-list-indices-avances/">Indexage avancé de listes</a></li>
  141 +
  142 + <li><a href="../23-creation-numpy/">Introduction Numpy</a></li>
139 143  
140 144 <li role="separator" class="divider"></li>
141 145 <li><a href="../aio/">All in one page (Beta)</a></li>
18-boucle-for/index.html View file @ 3d3ad5f
... ... @@ -7,7 +7,7 @@
7 7 <head>
8 8 <meta charset="utf-8">
9 9 <meta http-equiv="X-UA-Compatible" content="IE=edge">
10   - <meta http-equiv="last-modified" content="2018-09-27 11:19:56 +0200">
  10 + <meta http-equiv="last-modified" content="2018-10-08 08:12:02 -0500">
11 11 <meta name="viewport" content="width=device-width, initial-scale=1">
12 12 <!-- meta "search-domain" used for google site search function google_search() -->
13 13 <meta name="search-domain" value="">
... ... @@ -136,6 +136,10 @@
136 136 <li><a href="../20-cours-info-l2/">〚Cours〛Informatique (L2)</a></li>
137 137  
138 138 <li><a href="../21-liste-en-comprehension/">Listes en compréhension</a></li>
  139 +
  140 + <li><a href="../22-list-indices-avances/">Indexage avancé de listes</a></li>
  141 +
  142 + <li><a href="../23-creation-numpy/">Introduction Numpy</a></li>
139 143  
140 144 <li role="separator" class="divider"></li>
141 145 <li><a href="../aio/">All in one page (Beta)</a></li>
19-def-fonctions/index.html View file @ 3d3ad5f
... ... @@ -7,7 +7,7 @@
7 7 <head>
8 8 <meta charset="utf-8">
9 9 <meta http-equiv="X-UA-Compatible" content="IE=edge">
10   - <meta http-equiv="last-modified" content="2018-09-27 11:19:56 +0200">
  10 + <meta http-equiv="last-modified" content="2018-10-08 08:12:02 -0500">
11 11 <meta name="viewport" content="width=device-width, initial-scale=1">
12 12 <!-- meta "search-domain" used for google site search function google_search() -->
13 13 <meta name="search-domain" value="">
... ... @@ -136,6 +136,10 @@
136 136 <li><a href="../20-cours-info-l2/">〚Cours〛Informatique (L2)</a></li>
137 137  
138 138 <li><a href="../21-liste-en-comprehension/">Listes en compréhension</a></li>
  139 +
  140 + <li><a href="../22-list-indices-avances/">Indexage avancé de listes</a></li>
  141 +
  142 + <li><a href="../23-creation-numpy/">Introduction Numpy</a></li>
139 143  
140 144 <li role="separator" class="divider"></li>
141 145 <li><a href="../aio/">All in one page (Beta)</a></li>
20-cours-info-l2/index.html View file @ 3d3ad5f
... ... @@ -7,7 +7,7 @@
7 7 <head>
8 8 <meta charset="utf-8">
9 9 <meta http-equiv="X-UA-Compatible" content="IE=edge">
10   - <meta http-equiv="last-modified" content="2018-09-27 11:19:56 +0200">
  10 + <meta http-equiv="last-modified" content="2018-10-08 08:12:02 -0500">
11 11 <meta name="viewport" content="width=device-width, initial-scale=1">
12 12 <!-- meta "search-domain" used for google site search function google_search() -->
13 13 <meta name="search-domain" value="">
... ... @@ -136,6 +136,10 @@
136 136 <li><a href="../20-cours-info-l2/">〚Cours〛Informatique (L2)</a></li>
137 137  
138 138 <li><a href="../21-liste-en-comprehension/">Listes en compréhension</a></li>
  139 +
  140 + <li><a href="../22-list-indices-avances/">Indexage avancé de listes</a></li>
  141 +
  142 + <li><a href="../23-creation-numpy/">Introduction Numpy</a></li>
139 143  
140 144 <li role="separator" class="divider"></li>
141 145 <li><a href="../aio/">All in one page (Beta)</a></li>
21-liste-en-comprehension/index.html View file @ 3d3ad5f
... ... @@ -7,7 +7,7 @@
7 7 <head>
8 8 <meta charset="utf-8">
9 9 <meta http-equiv="X-UA-Compatible" content="IE=edge">
10   - <meta http-equiv="last-modified" content="2018-09-27 11:19:56 +0200">
  10 + <meta http-equiv="last-modified" content="2018-10-08 08:12:02 -0500">
11 11 <meta name="viewport" content="width=device-width, initial-scale=1">
12 12 <!-- meta "search-domain" used for google site search function google_search() -->
13 13 <meta name="search-domain" value="">
... ... @@ -137,6 +137,10 @@
137 137  
138 138 <li><a href="../21-liste-en-comprehension/">Listes en compréhension</a></li>
139 139  
  140 + <li><a href="../22-list-indices-avances/">Indexage avancé de listes</a></li>
  141 +
  142 + <li><a href="../23-creation-numpy/">Introduction Numpy</a></li>
  143 +
140 144 <li role="separator" class="divider"></li>
141 145 <li><a href="../aio/">All in one page (Beta)</a></li>
142 146 </ul>
... ... @@ -196,7 +200,7 @@
196 200 <div class="col-xs-1">
197 201 <h3 class="text-right">
198 202  
199   - <a href="../"><span class="glyphicon glyphicon-menu-up" aria-hidden="true"></span><span class="sr-only">lesson home</span></a>
  203 + <a href="../22-list-indices-avances/"><span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span><span class="sr-only">next episode</span></a>
200 204  
201 205 </h3>
202 206 </div>
... ... @@ -379,7 +383,7 @@
379 383 <div class="col-xs-1">
380 384 <h3 class="text-right">
381 385  
382   - <a href="../"><span class="glyphicon glyphicon-menu-up" aria-hidden="true"></span><span class="sr-only">lesson home</span></a>
  386 + <a href="../22-list-indices-avances/"><span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span><span class="sr-only">next episode</span></a>
383 387  
384 388 </h3>
385 389 </div>
22-list-indices-avances/index.html View file @ 3d3ad5f
  1 +
  2 +
  3 +
  4 +
  5 +<!doctype html>
  6 +<html lang="en">
  7 + <head>
  8 + <meta charset="utf-8">
  9 + <meta http-equiv="X-UA-Compatible" content="IE=edge">
  10 + <meta http-equiv="last-modified" content="2018-10-08 08:12:02 -0500">
  11 + <meta name="viewport" content="width=device-width, initial-scale=1">
  12 + <!-- meta "search-domain" used for google site search function google_search() -->
  13 + <meta name="search-domain" value="">
  14 + <link rel="stylesheet" type="text/css" href="../assets/css/bootstrap.css" />
  15 + <link rel="stylesheet" type="text/css" href="../assets/css/bootstrap-theme.css" />
  16 + <link rel="stylesheet" type="text/css" href="../assets/css/lesson.css" />
  17 + <link rel="stylesheet" type="text/css" href="../assets/css/syntax.css" />
  18 +
  19 +
  20 +
  21 +
  22 +
  23 + <!-- Favicons for everyone -->
  24 + <link rel="apple-touch-icon-precomposed" sizes="57x57" href="/assets/favicons/UJM/apple-touch-icon-57x57.png" />
  25 + <link rel="apple-touch-icon-precomposed" sizes="114x114" href="/assets/favicons/UJM/apple-touch-icon-114x114.png" />
  26 + <link rel="apple-touch-icon-precomposed" sizes="72x72" href="/assets/favicons/UJM/apple-touch-icon-72x72.png" />
  27 + <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/assets/favicons/UJM/apple-touch-icon-144x144.png" />
  28 + <link rel="apple-touch-icon-precomposed" sizes="60x60" href="/assets/favicons/UJM/apple-touch-icon-60x60.png" />
  29 + <link rel="apple-touch-icon-precomposed" sizes="120x120" href="/assets/favicons/UJM/apple-touch-icon-120x120.png" />
  30 + <link rel="apple-touch-icon-precomposed" sizes="76x76" href="/assets/favicons/UJM/apple-touch-icon-76x76.png" />
  31 + <link rel="apple-touch-icon-precomposed" sizes="152x152" href="/assets/favicons/UJM/apple-touch-icon-152x152.png" />
  32 + <link rel="icon" type="image/png" href="/assets/favicons/UJM/favicon-196x196.png" sizes="196x196" />
  33 + <link rel="icon" type="image/png" href="/assets/favicons/UJM/favicon-96x96.png" sizes="96x96" />
  34 + <link rel="icon" type="image/png" href="/assets/favicons/UJM/favicon-32x32.png" sizes="32x32" />
  35 + <link rel="icon" type="image/png" href="/assets/favicons/UJM/favicon-16x16.png" sizes="16x16" />
  36 + <link rel="icon" type="image/png" href="/assets/favicons/UJM/favicon-128.png" sizes="128x128" />
  37 + <meta name="application-name" content=" - Programmer en Python"/>
  38 + <meta name="msapplication-TileColor" content="#FFFFFF" />
  39 + <meta name="msapplication-TileImage" content="/assets/favicons/UJM/mstile-144x144.png" />
  40 + <meta name="msapplication-square70x70logo" content="/assets/favicons/UJM/mstile-70x70.png" />
  41 + <meta name="msapplication-square150x150logo" content="/assets/favicons/UJM/mstile-150x150.png" />
  42 + <meta name="msapplication-wide310x150logo" content="/assets/favicons/UJM/mstile-310x150.png" />
  43 + <meta name="msapplication-square310x310logo" content="/assets/favicons/UJM/mstile-310x310.png" />
  44 +
  45 +
  46 + <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  47 + <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  48 + <!--[if lt IE 9]>
  49 + <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  50 + <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  51 + <![endif]-->
  52 + <title>Programmer en Python: Indexage avancé de listes</title>
  53 + </head>
  54 + <body>
  55 +
  56 +
  57 +
  58 +
  59 +
  60 + <div class="container">
  61 +
  62 +<nav class="navbar navbar-default">
  63 + <div class="container-fluid">
  64 + <div class="navbar-header">
  65 + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
  66 + <span class="sr-only">Toggle navigation</span>
  67 + <span class="icon-bar"></span>
  68 + <span class="icon-bar"></span>
  69 + <span class="icon-bar"></span>
  70 + </button>
  71 +
  72 +
  73 +
  74 + <a href=".." class="pull-left">
  75 + <img class="navbar-logo" src="../assets/img/UJM-logo.svg" alt="UJM logo" />
  76 + </a>
  77 +
  78 +
  79 +
  80 + <a class="navbar-brand" href="../">Accueil</a>
  81 +
  82 + </div>
  83 + <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
  84 + <ul class="nav navbar-nav">
  85 +
  86 +
  87 +
  88 +
  89 +
  90 + <!--li><a href="../setup/">Setup</a></li-->
  91 + <li><a href="../reference/">Réference</a></li>
  92 +
  93 +
  94 + <li class="dropdown">
  95 + <a href="../" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Épisodes <span class="caret"></span></a>
  96 + <ul class="dropdown-menu">
  97 +
  98 + <li><a href="../01-cours-outils-info/">〚Cours〛Outils Informatique</a></li>
  99 +
  100 + <li><a href="../02-intro-outils-info/">Informatique et Programmation Impérative</a></li>
  101 +
  102 + <li><a href="../03-terminal-et-bash/">Le Terminal et Bash</a></li>
  103 +
  104 + <li><a href="../04-bash-et-chemins/">Arborescences de Fichier et Bash</a></li>
  105 +
  106 + <li><a href="../05-python-intro/">Un Premier Programme</a></li>
  107 +
  108 + <li><a href="../06-operations-arith/">Opérations sur des Nombres</a></li>
  109 +
  110 + <li><a href="../07-variables-et-types/">Variables et Types</a></li>
  111 +
  112 + <li><a href="../08-erreurs/">Apprendre par l'Erreur</a></li>
  113 +
  114 + <li><a href="../09-fonction-et-aide/">Fonctions Prédéfinies et Aide</a></li>
  115 +
  116 + <li><a href="../10-import-biblio/">Bibliothèques et Importation de Fonctions</a></li>
  117 +
  118 + <li><a href="../11-biblio-qtido/">Bibliothèque Graphique qtido</a></li>
  119 +
  120 + <li><a href="../12-input-conversion/">Entrées Utilisateur</a></li>
  121 +
  122 + <li><a href="../13-condition-if/">Instructions Conditionnelles</a></li>
  123 +
  124 + <li><a href="../14-conditions-else/">Instructions Conditionnelles (2)</a></li>
  125 +
  126 + <li><a href="../15-boucle-while/">Boucles while (tant que)</a></li>
  127 +
  128 + <li><a href="../16-listes-base/">Listes de Valeurs</a></li>
  129 +
  130 + <li><a href="../17-listes-plus/">Listes de Valeurs (2)</a></li>
  131 +
  132 + <li><a href="../18-boucle-for/">Boucles for</a></li>
  133 +
  134 + <li><a href="../19-def-fonctions/">Définitions de fonctions</a></li>
  135 +
  136 + <li><a href="../20-cours-info-l2/">〚Cours〛Informatique (L2)</a></li>
  137 +
  138 + <li><a href="../21-liste-en-comprehension/">Listes en compréhension</a></li>
  139 +
  140 + <li><a href="../22-list-indices-avances/">Indexage avancé de listes</a></li>
  141 +
  142 + <li><a href="../23-creation-numpy/">Introduction Numpy</a></li>
  143 +
  144 + <li role="separator" class="divider"></li>
  145 + <li><a href="../aio/">All in one page (Beta)</a></li>
  146 + </ul>
  147 + </li>
  148 +
  149 +
  150 + <li><a href="../installation/">Installation</a></li>
  151 +
  152 +
  153 +
  154 + <li class="dropdown">
  155 + <a href="../" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Extras <span class="caret"></span></a>
  156 + <ul class="dropdown-menu">
  157 + <li><a href="../reference/">Reference</a></li>
  158 +
  159 + <li><a href="../more-bashtips/">Astuces Bash</a></li>
  160 +
  161 + <li><a href="../reference-qtido/">Référence qtido</a></li>
  162 +
  163 + <li><a href="../about/">About</a></li>
  164 +
  165 + <li><a href="../figures/">Figures</a></li>
  166 +
  167 + <li><a href="../license/">License</a></li>
  168 + </ul>
  169 + </li>
  170 +
  171 +
  172 +
  173 +
  174 + <li><a href="https://github.com/twitwi/cours2python/edit/master/_episodes/22-list-indices-avances.md">Améliorer cette page <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a></li>
  175 +
  176 + </ul>
  177 + <form class="navbar-form navbar-right" role="search" id="search" onsubmit="google_search(); return false;">
  178 + <div class="form-group">
  179 + <input type="text" id="google-search" placeholder="Search..." aria-label="Google site search">
  180 + </div>
  181 + </form>
  182 + </div>
  183 + </div>
  184 +</nav>
  185 +
  186 +
  187 +<div class="row">
  188 + <div class="col-xs-1">
  189 + <h3 class="text-left">
  190 +
  191 + <a href="../21-liste-en-comprehension/"><span class="glyphicon glyphicon-menu-left" aria-hidden="true"></span><span class="sr-only">previous episode</span></a>
  192 +
  193 + </h3>
  194 + </div>
  195 + <div class="col-xs-10">
  196 +
  197 + <h3 class="maintitle"><a href="../">Programmer en Python</a></h3>
  198 +
  199 + </div>
  200 + <div class="col-xs-1">
  201 + <h3 class="text-right">
  202 +
  203 + <a href="../23-creation-numpy/"><span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span><span class="sr-only">next episode</span></a>
  204 +
  205 + </h3>
  206 + </div>
  207 +</div>
  208 +
  209 +<article>
  210 +<div class="row">
  211 + <div class="col-md-1">
  212 + </div>
  213 + <div class="col-md-10">
  214 + <h1 class="maintitle">Indexage avancé de listes</h1>
  215 + </div>
  216 + <div class="col-md-1">
  217 + </div>
  218 +</div>
  219 +
  220 +
  221 +<blockquote class="objectives">
  222 + <h2>Aperçu</h2>
  223 +
  224 + <div class="row">
  225 + <div class="col-md-1">
  226 + <!--
  227 + <strong>Teaching:</strong> 0 min
  228 + <br/>
  229 + <strong>Exercises:</strong> 0 min
  230 + -->
  231 + </div>
  232 + <div class="col-md-9">
  233 + <strong>Questions</strong>
  234 + <ul>
  235 +
  236 + <li><p>Comment accéder au n-ème élément d’une liste en partant de la fin ?</p>
  237 +</li>
  238 +
  239 + <li><p>Comment extraire une sous-partie d’une liste ?</p>
  240 +</li>
  241 +
  242 + <li><p>Comment inverser l’ordre d’une liste ?</p>
  243 +</li>
  244 +
  245 + </ul>
  246 + </div>
  247 + </div>
  248 +
  249 + <div class="row">
  250 + <div class="col-md-1">
  251 + </div>
  252 + <div class="col-md-10">
  253 + <strong>Objectifs</strong>
  254 + <ul>
  255 +
  256 + <li><p>Comprendre les indices négatifs.</p>
  257 +</li>
  258 +
  259 + <li><p>Comprendre les tranches de listes.</p>
  260 +</li>
  261 +
  262 + </ul>
  263 + </div>
  264 + </div>
  265 +
  266 +</blockquote>
  267 +
  268 +<blockquote class="syntax">
  269 + <h2 id="syntaxe--indices-négatifs-de-liste">Syntaxe : Indices négatifs de liste</h2>
  270 + <p>L’indice dans l’accès à une liste peut être négatif, pour compter la position de l’élément en partant de la fin de la liste.
  271 +Si <code class="highlighter-rouge">l</code> est une liste et <code class="highlighter-rouge">i</code> est négatif, on a:</p>
  272 +
  273 + <div class="language-python source highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="n">l</span><span class="p">[</span><span class="n">i</span><span class="p">]</span>
  274 +</code></pre></div> </div>
  275 +
  276 + <p>qui est équivalente à :</p>
  277 +
  278 + <div class="language-python source highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="n">l</span><span class="p">[</span><span class="nb">len</span><span class="p">(</span><span class="n">l</span><span class="p">)</span> <span class="o">+</span> <span class="n">i</span><span class="p">]</span>
  279 +</code></pre></div> </div>
  280 + <p>Vue autrement, <code class="highlighter-rouge">l[-j]</code> est équivalent à <code class="highlighter-rouge">l[len(l) - j]</code>.</p>
  281 +</blockquote>
  282 +
  283 +<blockquote class="syntax">
  284 + <h2 id="syntaxe--tranches-de-liste">Syntaxe : Tranches de liste</h2>
  285 + <p>L’indice dans l’accès à une liste peut être complexe, pour extraire une « tranche » (sous partie de liste).
  286 +Si <code class="highlighter-rouge">l</code> est une liste et <code class="highlighter-rouge">a</code>, <code class="highlighter-rouge">b</code>, <code class="highlighter-rouge">c</code> trois entier (variables, constantes ou expressions) :</p>
  287 +
  288 + <div class="language-python source highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="n">res</span> <span class="o">=</span> <span class="n">l</span><span class="p">[</span><span class="n">a</span><span class="p">:</span><span class="n">b</span><span class="p">:</span><span class="n">c</span><span class="p">]</span>
  289 +</code></pre></div> </div>
  290 +
  291 + <p>est équivalente à :</p>
  292 +
  293 + <div class="language-python highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="n">res</span> <span class="o">=</span> <span class="p">[]</span>
  294 +<span class="k">for</span> <span class="n">i</span> <span class="n">n</span> <span class="nb">range</span><span class="p">(</span><span class="n">a</span><span class="p">,</span> <span class="n">b</span><span class="p">,</span> <span class="n">c</span><span class="p">):</span>
  295 + <span class="n">res</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">l</span><span class="p">[</span><span class="n">i</span><span class="p">])</span>
  296 +</code></pre></div> </div>
  297 +
  298 + <p>ou, avec la liste en compréhension :</p>
  299 +
  300 + <div class="language-python source highlighter-rouge"><div class="highlight"><pre class="highlight"><code><span class="n">res</span> <span class="o">=</span> <span class="p">[</span><span class="n">l</span><span class="p">[</span><span class="n">i</span><span class="p">]</span> <span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="n">a</span><span class="p">,</span> <span class="n">b</span><span class="p">,</span> <span class="n">c</span><span class="p">)]</span>
  301 +</code></pre></div> </div>
  302 +
  303 + <p>Remarques:</p>
  304 +
  305 + <ul>
  306 + <li>Il est possible d’utiliser cette construction à gauche du <code class="highlighter-rouge">=</code> (pour remplacer les valeurs de la tranche de liste par celles d’une autre liste.</li>
  307 + <li>Il est possible d’omettre le <code class="highlighter-rouge">a</code>, dans ce cas la tranche part du début de la liste.</li>
  308 + <li>Il est possible d’omettre le <code class="highlighter-rouge">b</code>, dans ce cas la tranche va jusqu’à la fin de la liste.</li>
  309 + <li>Il est possible d’omettre le <code class="highlighter-rouge">c</code>, dans ce cas le pas vaut 1 (exemples : <code class="highlighter-rouge">l[1:8:]</code>, <code class="highlighter-rouge">l[5::]</code>, <code class="highlighter-rouge">l[3::]</code> ).</li>
  310 + <li>Si le <code class="highlighter-rouge">c</code> est omis, il est possible d’omettre le second <code class="highlighter-rouge">:</code> (exemples : <code class="highlighter-rouge">l[1:8]</code>, <code class="highlighter-rouge">l[5:]</code>, <code class="highlighter-rouge">l[:3]</code>).</li>
  311 + </ul>
  312 +</blockquote>
  313 +
  314 +
  315 +<blockquote class="keypoints">
  316 + <h2>Points Clés</h2>
  317 + <ul>
  318 +
  319 + <li><p>Un indice négatif compte en partant de la fin de la liste.</p>
  320 +</li>
  321 +
  322 + <li><p>L’indice de -1 représente le dernier élément de la liste, -2 l’avant dernier, etc.</p>
  323 +</li>
  324 +
  325 + <li>
  326 +</li>
  327 +
  328 + </ul>
  329 +
  330 +</blockquote>
  331 +
  332 +</article>
  333 +
  334 +<div class="row">
  335 + <div class="col-xs-1">
  336 + <h3 class="text-left">
  337 +
  338 + <a href="../21-liste-en-comprehension/"><span class="glyphicon glyphicon-menu-left" aria-hidden="true"></span><span class="sr-only">previous episode</span></a>
  339 +
  340 + </h3>
  341 + </div>
  342 + <div class="col-xs-10">
  343 +
  344 + </div>
  345 + <div class="col-xs-1">
  346 + <h3 class="text-right">
  347 +
  348 + <a href="../23-creation-numpy/"><span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span><span class="sr-only">next episode</span></a>
  349 +
  350 + </h3>
  351 + </div>
  352 +</div>
  353 +
  354 +
  355 +
  356 +
  357 +<footer>
  358 + <div class="row">
  359 + <div class="col-md-6 copyright" align="left">
  360 +
  361 + </div>
  362 + <div class="col-md-6 help-links" align="right">
  363 +
  364 + <a href="https://github.com/twitwi/cours2python/edit/gh-pages/_episodes/22-list-indices-avances.md">Edit on GitHub</a>
  365 +
  366 + /
  367 + <a href="https://github.com/twitwi/cours2python/blob/gh-pages/CONTRIBUTING.md">Contributing</a>
  368 + /
  369 + <a href="https://github.com/twitwi/cours2python/">Source</a>
  370 + /
  371 + <a href="https://github.com/twitwi/cours2python/blob/gh-pages/CITATION">Cite</a>
  372 + /
  373 + <a href="mailto:">Contact</a>
  374 + </div>
  375 + </div>
  376 + <div class="row">
  377 + <div class="col-md-12" align="center">
  378 + Using <a href="https://github.com/carpentries/styles/">The Carpentries style</a>
  379 + version <a href="https://github.com/carpentries/styles/releases/tag/v9.5.3">9.5.3</a>.
  380 + </div>
  381 + </div>
  382 +</footer>
  383 +
  384 +
  385 + </div>
  386 +
  387 +<script src="../assets/js/jquery.min.js"></script>
  388 +<script src="../assets/js/bootstrap.min.js"></script>
  389 +<script src="../assets/js/lesson.js"></script>
  390 +
  391 +<!-- clicky -->
  392 +<script type="text/javascript">
  393 +var clicky_site_ids = clicky_site_ids || [];
  394 +clicky_site_ids.push(100779706);
  395 +(function() {
  396 + var s = document.createElement('script');
  397 + s.type = 'text/javascript';
  398 + s.async = true;
  399 + s.src = '//static.getclicky.com/js';
  400 + ( document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0] ).appendChild( s );
  401 +})();
  402 +</script>
  403 +<noscript><p><img alt="Clicky" width="1" height="1" src="//in.getclicky.com/100779706ns.gif" /></p></noscript>
  404 +
  405 +
  406 +<!-- Histats.com START (aync)-->
  407 +<script type="text/javascript">var _Hasync= _Hasync|| [];
  408 +_Hasync.push(['Histats.start', '1,2767123,4,0,0,0,00010000']);
  409 +_Hasync.push(['Histats.fasi', '1']);
  410 +_Hasync.push(['Histats.track_hits', '']);
  411 +(function() {
  412 +var hs = document.createElement('script'); hs.type = 'text/javascript'; hs.async = true;
  413 +hs.src = ('//s10.histats.com/js15_as.js');
  414 +(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(hs);
  415 +})();</script>
  416 +<noscript><a href="//www.histats.com" target="_blank"><img src="//sstatic1.histats.com/0.gif?2767123&101" alt="javascript hit counter" border="0"></a></noscript>
  417 +<!-- Histats.com END -->
  418 + </body>
  419 +</html>
23-creation-numpy/index.html View file @ 3d3ad5f
  1 +
  2 +
  3 +
  4 +
  5 +<!doctype html>
  6 +<html lang="en">
  7 + <head>
  8 + <meta charset="utf-8">
  9 + <meta http-equiv="X-UA-Compatible" content="IE=edge">
  10 + <meta http-equiv="last-modified" content="2018-10-08 08:12:02 -0500">
  11 + <meta name="viewport" content="width=device-width, initial-scale=1">
  12 + <!-- meta "search-domain" used for google site search function google_search() -->
  13 + <meta name="search-domain" value="">
  14 + <link rel="stylesheet" type="text/css" href="../assets/css/bootstrap.css" />
  15 + <link rel="stylesheet" type="text/css" href="../assets/css/bootstrap-theme.css" />
  16 + <link rel="stylesheet" type="text/css" href="../assets/css/lesson.css" />
  17 + <link rel="stylesheet" type="text/css" href="../assets/css/syntax.css" />
  18 +
  19 +
  20 +
  21 +
  22 +
  23 + <!-- Favicons for everyone -->
  24 + <link rel="apple-touch-icon-precomposed" sizes="57x57" href="/assets/favicons/UJM/apple-touch-icon-57x57.png" />
  25 + <link rel="apple-touch-icon-precomposed" sizes="114x114" href="/assets/favicons/UJM/apple-touch-icon-114x114.png" />
  26 + <link rel="apple-touch-icon-precomposed" sizes="72x72" href="/assets/favicons/UJM/apple-touch-icon-72x72.png" />
  27 + <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/assets/favicons/UJM/apple-touch-icon-144x144.png" />
  28 + <link rel="apple-touch-icon-precomposed" sizes="60x60" href="/assets/favicons/UJM/apple-touch-icon-60x60.png" />
  29 + <link rel="apple-touch-icon-precomposed" sizes="120x120" href="/assets/favicons/UJM/apple-touch-icon-120x120.png" />
  30 + <link rel="apple-touch-icon-precomposed" sizes="76x76" href="/assets/favicons/UJM/apple-touch-icon-76x76.png" />
  31 + <link rel="apple-touch-icon-precomposed" sizes="152x152" href="/assets/favicons/UJM/apple-touch-icon-152x152.png" />
  32 + <link rel="icon" type="image/png" href="/assets/favicons/UJM/favicon-196x196.png" sizes="196x196" />
  33 + <link rel="icon" type="image/png" href="/assets/favicons/UJM/favicon-96x96.png" sizes="96x96" />
  34 + <link rel="icon" type="image/png" href="/assets/favicons/UJM/favicon-32x32.png" sizes="32x32" />
  35 + <link rel="icon" type="image/png" href="/assets/favicons/UJM/favicon-16x16.png" sizes="16x16" />
  36 + <link rel="icon" type="image/png" href="/assets/favicons/UJM/favicon-128.png" sizes="128x128" />
  37 + <meta name="application-name" content=" - Programmer en Python"/>
  38 + <meta name="msapplication-TileColor" content="#FFFFFF" />
  39 + <meta name="msapplication-TileImage" content="/assets/favicons/UJM/mstile-144x144.png" />
  40 + <meta name="msapplication-square70x70logo" content="/assets/favicons/UJM/mstile-70x70.png" />
  41 + <meta name="msapplication-square150x150logo" content="/assets/favicons/UJM/mstile-150x150.png" />
  42 + <meta name="msapplication-wide310x150logo" content="/assets/favicons/UJM/mstile-310x150.png" />
  43 + <meta name="msapplication-square310x310logo" content="/assets/favicons/UJM/mstile-310x310.png" />
  44 +
  45 +
  46 + <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  47 + <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  48 + <!--[if lt IE 9]>
  49 + <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  50 + <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  51 + <![endif]-->
  52 + <title>Programmer en Python: Introduction Numpy</title>
  53 + </head>
  54 + <body>
  55 +
  56 +
  57 +
  58 +
  59 +
  60 + <div class="container">
  61 +
  62 +<nav class="navbar navbar-default">
  63 + <div class="container-fluid">
  64 + <div class="navbar-header">
  65 + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
  66 + <span class="sr-only">Toggle navigation</span>
  67 + <span class="icon-bar"></span>
  68 + <span class="icon-bar"></span>
  69 + <span class="icon-bar"></span>
  70 + </button>
  71 +
  72 +
  73 +
  74 + <a href=".." class="pull-left">
  75 + <img class="navbar-logo" src="../assets/img/UJM-logo.svg" alt="UJM logo" />
  76 + </a>
  77 +
  78 +
  79 +
  80 + <a class="navbar-brand" href="../">Accueil</a>
  81 +
  82 + </div>
  83 + <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
  84 + <ul class="nav navbar-nav">
  85 +
  86 +
  87 +
  88 +
  89 +
  90 + <!--li><a href="../setup/">Setup</a></li-->
  91 + <li><a href="../reference/">Réference</a></li>
  92 +
  93 +
  94 + <li class="dropdown">
  95 + <a href="../" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Épisodes <span class="caret"></span></a>
  96 + <ul class="dropdown-menu">
  97 +
  98 + <li><a href="../01-cours-outils-info/">〚Cours〛Outils Informatique</a></li>
  99 +
  100 + <li><a href="../02-intro-outils-info/">Informatique et Programmation Impérative</a></li>
  101 +
  102 + <li><a href="../03-terminal-et-bash/">Le Terminal et Bash</a></li>
  103 +
  104 + <li><a href="../04-bash-et-chemins/">Arborescences de Fichier et Bash</a></li>
  105 +
  106 + <li><a href="../05-python-intro/">Un Premier Programme</a></li>
  107 +
  108 + <li><a href="../06-operations-arith/">Opérations sur des Nombres</a></li>
  109 +
  110 + <li><a href="../07-variables-et-types/">Variables et Types</a></li>
  111 +
  112 + <li><a href="../08-erreurs/">Apprendre par l'Erreur</a></li>
  113 +
  114 + <li><a href="../09-fonction-et-aide/">Fonctions Prédéfinies et Aide</a></li>
  115 +
  116 + <li><a href="../10-import-biblio/">Bibliothèques et Importation de Fonctions</a></li>
  117 +
  118 + <li><a href="../11-biblio-qtido/">Bibliothèque Graphique qtido</a></li>
  119 +
  120 + <li><a href="../12-input-conversion/">Entrées Utilisateur</a></li>
  121 +
  122 + <li><a href="../13-condition-if/">Instructions Conditionnelles</a></li>
  123 +
  124 + <li><a href="../14-conditions-else/">Instructions Conditionnelles (2)</a></li>
  125 +
  126 + <li><a href="../15-boucle-while/">Boucles while (tant que)</a></li>
  127 +
  128 + <li><a href="../16-listes-base/">Listes de Valeurs</a></li>
  129 +
  130 + <li><a href="../17-listes-plus/">Listes de Valeurs (2)</a></li>
  131 +
  132 + <li><a href="../18-boucle-for/">Boucles for</a></li>
  133 +
  134 + <li><a href="../19-def-fonctions/">Définitions de fonctions</a></li>
  135 +
  136 + <li><a href="../20-cours-info-l2/">〚Cours〛Informatique (L2)</a></li>
  137 +
  138 + <li><a href="../21-liste-en-comprehension/">Listes en compréhension</a></li>
  139 +
  140 + <li><a href="../22-list-indices-avances/">Indexage avancé de listes</a></li>
  141 +
  142 + <li><a href="../23-creation-numpy/">Introduction Numpy</a></li>
  143 +
  144 + <li role="separator" class="divider"></li>
  145 + <li><a href="../aio/">All in one page (Beta)</a></li>
  146 + </ul>
  147 + </li>
  148 +
  149 +
  150 + <li><a href="../installation/">Installation</a></li>
  151 +
  152 +
  153 +
  154 + <li class="dropdown">
  155 + <a href="../" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Extras <span class="caret"></span></a>
  156 + <ul class="dropdown-menu">
  157 + <li><a href="../reference/">Reference</a></li>
  158 +
  159 + <li><a href="../more-bashtips/">Astuces Bash</a></li>
  160 +
  161 + <li><a href="../reference-qtido/">Référence qtido</a></li>
  162 +
  163 + <li><a href="../about/">About</a></li>
  164 +
  165 + <li><a href="../figures/">Figures</a></li>
  166 +
  167 + <li><a href="../license/">License</a></li>
  168 + </ul>
  169 + </li>
  170 +
  171 +
  172 +
  173 +
  174 + <li><a href="https://github.com/twitwi/cours2python/edit/master/_episodes/23-creation-numpy.md">Améliorer cette page <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a></li>
  175 +
  176 + </ul>
  177 + <form class="navbar-form navbar-right" role="search" id="search" onsubmit="google_search(); return false;">
  178 + <div class="form-group">
  179 + <input type="text" id="google-search" placeholder="Search..." aria-label="Google site search">
  180 + </div>
  181 + </form>
  182 + </div>
  183 + </div>
  184 +</nav>
  185 +
  186 +
  187 +<div class="row">
  188 + <div class="col-xs-1">
  189 + <h3 class="text-left">
  190 +
  191 + <a href="../22-list-indices-avances/"><span class="glyphicon glyphicon-menu-left" aria-hidden="true"></span><span class="sr-only">previous episode</span></a>
  192 +
  193 + </h3>