modifié : comptage_mot.py
This commit is contained in:
		@@ -6,8 +6,9 @@ tab_mot = phrase.split(' ')
 | 
			
		||||
cpt_mot={}
 | 
			
		||||
for mot in tab_mot:
 | 
			
		||||
   if mot in cpt_mot:
 | 
			
		||||
      cpt_mot{mot}++
 | 
			
		||||
      cpt_mot[mot]+= 1
 | 
			
		||||
   else :
 | 
			
		||||
      cpt_mot{mot}=1
 | 
			
		||||
      cpt_mot[mot]=1
 | 
			
		||||
 | 
			
		||||
for mot in 
 | 
			
		||||
for mot in cpt_mot.keys:
 | 
			
		||||
   print(mot, "  : ",cpt_mot[mot])
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user