mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	Fix example for count().
This commit is contained in:
		
							parent
							
								
									c60e306a80
								
							
						
					
					
						commit
						725cb96d8a
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -229,7 +229,7 @@ loops that truncate the stream.
 | 
			
		|||
 | 
			
		||||
      def count(start=0, step=1):
 | 
			
		||||
          # count(10) --> 10 11 12 13 14 ...
 | 
			
		||||
          # count(2.5, 0.5) -> 3.5 3.0 4.5 ...
 | 
			
		||||
          # count(2.5, 0.5) -> 2.5 3.0 3.5 ...
 | 
			
		||||
          n = start
 | 
			
		||||
          while True:
 | 
			
		||||
              yield n
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue