allow Null results - added test

This commit is contained in:
Ilan Steemers
2015-06-24 22:23:22 +02:00
parent 47de658be5
commit 06791005c9
2 changed files with 8 additions and 7 deletions
+1 -7
View File
@@ -1,13 +1,7 @@
import time
# simple countdown
# simple countdown, returns nothing
def countdown(n):
start_time = time.time()
while n > 0:
n -= 1
stop_time = time.time()
return stop_time - start_time
def count_letters(tup):
total = 0