summaryrefslogtreecommitdiff
path: root/progs/a456.py
blob: bb16096f78ecd0b41f2f950349f1319b8e7a7028 (plain)
1
2
3
4
5
6
7
8
9
def power(a,b):
	if b==0:
		return 1
	elif a==0:
		return 0
	elif b==1:
		return a
	else:
		return a*power(a,b-1)