Sean Murphy wrote: > Only outstanding thing I have to work out is how to execute functions from > a dictionary. I will continue searching on the net.
I don't quite understand this question. Do you mean something like this?
def spam(n):
return "spam"*n
def eggs(n):
return "eggs"*n
d = {1: spam, 2: eggs}
print( d[1](3) )
print( d[2](3) )
--
Steven
--
https://mail.python.org/mailman/listinfo/python-list
