Antun Karlovac: >If I have 'a', I need to know whether it is a list or a string. type(a) will tell you: >>> a = ['spam'] >>> b = 'eggs' >>> type(a) <type 'list'> >>> type(b) <type 'str'> -- René Pijlman