Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (15 sloc) 487 Bytes
from shovel import task
def hello(name):
'''Prints hello and the provided name'''
print('Hello, %s!' % name)
def sumnum(*args):
'''Computes the sum of the provided numbers'''
print('%s = %f' % (' + '.join(args), sum(float(arg) for arg in args)))
def attributes(name, **kwargs):
'''Prints a name, and all keyword attributes'''
print('%s has attributes:' % name)
for key, value in kwargs.items():
print('\t%s => %s' % (key, value))
You can’t perform that action at this time.