Bonjour
Je voulais faire un test afin d'assurer un prochain résultat,
et j'ai ouvert Python non pas pour qu'il me raconte des balivernes ☺
Alors Python ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 Python 3.10.1 (tags/v3.10.1:2cd268a, Dec 6 2021, 18:54:59) [MSC v.1929 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license()" for more information. a = ['1', '+1', '2', '+2', '3', '4', '+4', '5', '^4', '6', '-7', '7'] b = ['1', '+1', '2', '+2', '3', '4', '-4', '5', '^4', '6', '-7', '7'] # différence à l'indice 6 ['+4', '-4'] a != b True a == b False b=a b==a True
Partager