From 38164694986b358b051b78cab8a38f84c1258917 Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Wed, 8 Oct 2014 20:45:57 +0200 Subject: [PATCH] small type --- thesis2/fac.py | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 thesis2/fac.py diff --git a/thesis2/fac.py b/thesis2/fac.py deleted file mode 100644 index 1226f56..0000000 --- a/thesis2/fac.py +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/env python -# -*- coding: utf-8 -*- - -lookup = {0: 1} - -def fac(n): - if n in lookup: - return n - else: - return n*fac(n-1) - -def fac2(n): - if n == 0: - return 1 - else: - return n*fac(n-1) -- 2.20.1