# -*- coding: utf-8 -*- """ Created on Mon Nov 9 14:14:38 2015 Rekurencja @author: md316445 """ def frek(a): if a==0: return 0 else: return a+frek(a-1) print(frek(500))