Python code to check geometry type

Discussion created by tivelp on Sep 14, 2011
Latest reply on Apr 4, 2012 by bowleysj
I want to create an if else statement involving geometry types.

If geometry is a point run one process

elsif geometry is a line run different process.

Is there a way to do this using python?