example_0020.py
См. документацию.
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
3 
4 import example_0020
5 
6 try:
7  example_0020.function_with_args(2.1)
8 except TypeError as ex:
9  print '***', ex
10 
11 example_0020.function_with_args(1, 'One')
12 example_0020.function_with_args(2, 'Two')
13 
14 try:
15  example_0020.function_with_args('Three', 3)
16 except TypeError as ex:
17  print '***', ex