|  |  | @@ -36,7 +36,7 @@ Notions: | 
		
	
		
			
			|  |  |  | Oups, les variables disparaissent quand on ferme le REPL. | 
		
	
		
			
			|  |  |  | Solution: les mettre dans un fichier `.py`. | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | ``` | 
		
	
		
			
			|  |  |  | ```python | 
		
	
		
			
			|  |  |  | a = 1 | 
		
	
		
			
			|  |  |  | b = 2 | 
		
	
		
			
			|  |  |  | 
 | 
		
	
	
		
			
				|  |  | @@ -62,7 +62,7 @@ Notions: | 
		
	
		
			
			|  |  |  | * Deux-points | 
		
	
		
			
			|  |  |  | * return() | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | ``` | 
		
	
		
			
			|  |  |  | ```python | 
		
	
		
			
			|  |  |  | # ceci est un commentaire | 
		
	
		
			
			|  |  |  | def add(a, b): | 
		
	
		
			
			|  |  |  | return a + b | 
		
	
	
		
			
				|  |  | @@ -88,7 +88,7 @@ Notions: | 
		
	
		
			
			|  |  |  | * types. On peut pas ajouter un entier à une strig | 
		
	
		
			
			|  |  |  | * conversion avec `str()` | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | ``` | 
		
	
		
			
			|  |  |  | ```python | 
		
	
		
			
			|  |  |  | message = "Le total est: " + c | 
		
	
		
			
			|  |  |  | print(message) | 
		
	
		
			
			|  |  |  | ``` | 
		
	
	
		
			
				|  |  | @@ -139,11 +139,10 @@ Notions: | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | * Exceptions: si la conversion échoue | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | ``` | 
		
	
		
			
			|  |  |  | ```python | 
		
	
		
			
			|  |  |  | improt random | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | secret = random.randint(100) | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | secret = random.randint(0, 100) | 
		
	
		
			
			|  |  |  | ``` | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | 
 | 
		
	
	
		
			
				|  |  | 
 |