Skip to content

Commit

Permalink
removing function arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
despo committed Sep 4, 2011
1 parent 3a820b2 commit 3647634
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions exercises/ex33.py
@@ -1,4 +1,4 @@
def add_numbers_to_list(numbers, size):
def add_numbers_to_list(size):
i = 0
while i < size:
print "At the top is %d" % i
Expand All @@ -8,17 +8,17 @@ def add_numbers_to_list(numbers, size):
print "Numbers now: ", numbers
print "At the bottom i is %d" % i

def print_numbers(numbers):
def print_numbers():
print "The numbers:"

for num in numbers:
print num

numbers = []
add_numbers_to_list(numbers, 6)
print_numbers(numbers)
add_numbers_to_list(6)
print_numbers()

numbers = []
add_numbers_to_list(numbers, 3)
print_numbers(numbers)
add_numbers_to_list(3)
print_numbers()

0 comments on commit 3647634

Please sign in to comment.