Re: [Tutor] mysterious object

2005-12-17 Thread Alan Gauld
> def adder(**args): >for x in args.keys(): >print x A function which doesn't return a value returns None by default. > print adder() You are asking Python to print the return value of the function, which is None. As a general rule its better to do the printing outside of the functi

Re: [Tutor] mysterious object

2005-12-17 Thread Brian van den Broek
Christopher Spears said unto the world upon 2005-12-17 17:42: > I'm working on Exercise 4 from Part 4 from Learning > Python. I'm trying to write a function using **args. > I want to create a function that adds its arguments > together. Here is what I have written: > > def adder(**args): >