modifié : comptage_mot.py
This commit is contained in:
		@@ -3,5 +3,11 @@
 | 
			
		||||
phrase = input("Saisissez une phrase :" )
 | 
			
		||||
tab_mot = phrase.split(' ')
 | 
			
		||||
 | 
			
		||||
cpt_mot={}
 | 
			
		||||
for mot in tab_mot:
 | 
			
		||||
   print(mot)
 | 
			
		||||
   if mot in cpt_mot:
 | 
			
		||||
      cpt_mot{mot}++
 | 
			
		||||
   else :
 | 
			
		||||
      cpt_mot{mot}=1
 | 
			
		||||
 | 
			
		||||
for mot in 
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user