Testing for a list

Antun Karlovac antun at antunkarlovac.com
Mon Mar 10 18:25:36 CET 2003


Is there a way to test if a variable is a list?

i.e.

  a = []

If I have 'a', I need to know whether it is a list or a string.

Thanks,

Antun




More information about the Python-list mailing list