File: class/Workbook/Exercises/Lab4/ex1.txt

% python
>>> def func(x): print x
...
>>> func("spam")
spam
>>> func(42)
42
>>> func([1, 2, 3])
[1, 2, 3]
>>> func({'food': 'spam'})
{'food': 'spam'}



[Home page] Books Code Blog Python Author Train Find ©M.Lutz