OBSERVE                                                                       
                                                                                      
        Lis  le code    comme       une   histoire                                    
                                                                                      
        Fais d'abord une prédiction. Puis exécute le code dans l'éditeur en ligne.    
                                                                                      
                                                                                      
                                                                                      
          import random                                                               
          target_x = random.randint(-2, 2)                                            
          target_y = random.randint(-2, 2)                                            
          x = int(input("Choisis x (-2 à 2) : "))                                     
                                                                                      
          y = int(input("Choisis y (-2 à 2) : "))                                     
          if x == target_x and y == target_y:                                         
             print("Étoile attrapée !")                                               
          else:                                                                       
             print("L'étoile était à", target_x, target_y)                            
                                                                                      
                                                                                      
                                                                                      
         UN RÉSULTAT POSSIBLE                                                         
                                                                                      
         Choisis x (-2 à 2) : 1                                                       
         Choisis y (-2 à 2) : -1                                                      
         Étoile attrapée !                                                            
                                                                                      
                                                                                      
                                                                                      
          DÉTECTIVE DU CODE                                                           
                                                                                      
          Montre la partie qui peut changer. Montre la partie qui produit un résultat. À ton avis, à quoi sert chaque signe de
          ponctuation ?                                                               
                                                                                      
                                                                                      
                                                                                      
                                                                                      
                                                                                      
                                                                                      
                                                                                      
                                                                                      
                                                                                      
                                                                                      
                                                                                      
                                                                                      
                                                                                      
                                                                                      
                                                                                      
                                                                                      
                                                                                      
                                                                                      
                                                                                      
                                                                                      
                                                                                      
                                                                                      
                                                                                      
        Petit défi d'arcade                                                  75
