Copy the code value while iterating through each code in book_codes only if it contains the string "2010".
code
book_codes
"2010"
Make sure to pick code followed by for code in book_codes and then if, code.count(2010).
for code in book_codes
if
code.count(2010)