bonjour,

je ne comprends pas ,j'ai un code qui ne m'affiche rien et je n'ai aucune erreur
voici le code

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import os
import os.path 
 
source_pth = os.path.abspath("C:/DIVERS/IN/")  
source = os.listdir(source_pth)  
 
i = 0  
if ("ARMOIRE") in source:    
    while i < 1:
        print("j'ai une armoire")   
 
    i +=1
elif ("TIROIR") in source:
    while i < 2:
        print("j'ai 1 tiroir")
 
    i +=1
merci