mirror of
				https://github.com/pocketpy/pocketpy
				synced 2025-10-30 16:30:16 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			6 lines
		
	
	
		
			88 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
		
			88 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| def f(n):
 | |
|     if n == 0:
 | |
|         return 0
 | |
|     return n + f(n-1)
 | |
| 
 | |
| assert f(900) == 405450 |