Bear in mind, that was pseudocode Mathew provided, just a general 'untested' guide... it is good though. Let's take this a step at a time. First, for readability of your code, enclose it with tags, at the end, and at the beginning.
Forget about the loop and inline substitution for a moment - the 1st priority is to get a single execution of Feature Class To Feature Class going with 1 properly formed query...so do something like this:
import arcpy
# lines preceded with the '#' symbol are comment lines (not code)
# your workspace where all input/output will go for now
arcpy.env.workspace = r'D:\\'
# your input shapefile
inputShp = 'yr2010.shp' # What is your input shapefile?
# your output shapefile
outputShp = 'yr1991.shp'
# where clause -- substitute 'somefield' with your field (keeping the quotes)
# also, is your yr value numeric?
where = "'somefield' = 1991"
# Form Feature Class to Feature Class command based on above params
# FeatureClassToFeatureClass_conversion (in_features, out_path, out_name, {where_clause}, {field_mapping}, {config_keyword})
arcpy.FeatureClassToFeatureClass_conversion(inputShp, arcpy.workspace, outputShp, where)