DS0010 (Corrigé)⚓︎
Exercice 1
Question 1: 6
Question 2: 10100011
Question 3: 9D
Question 4: C3
Question 5: a = b
Question 6: x == 3 or y == 5
Question 7: 4
Question 8: IndentationError
Exercice 2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | |
Exercice 3
H
O
M
E
R
D'oh!
puis
19 9 1
Exercice 4
range(5)donne la séquence d'entiers0, 1, 2, 3, 4.range(2, 10)donne la séquence d'entiers2, 3, 4, 5, 6, 7, 8, 9.range(0, 20, 3)donne la séquence d'entiers0, 3, 6, 9, 12, 15, 18.
Exercice 5
1 2 | |
Exercice 6
1 2 3 | |
Exercice 7
1 2 3 4 5 | |