On Sep 20, 1:15 pm, Peng Yu <pengyu... at gmail.com> wrote: > The problem is how to know what type of the argument and call the > corresponding function. >>> type(1) <type 'int'> >>> type(1.2) <type 'float'>