This example uses a Search Cursor from the Data Access (da) module of ArcPy.
Do not confuse arcpy.da.SearchCursor syntax with the earlier and slower arcpy.SearchCursor().
The Data Access module (arcpy.da) has only been available since ArcGIS 10.1 for Desktop.
Alternatives to switch statement from other languages
createDissolvedGDB to create a file gdb on the workspace
This modified text is an extract of the original Stack Overflow Documentation created by following contributors
and released under CC BY-SA 3.0