Narrative:

I assumed the captain had gotten the pre departure clearance. Taxiing out, the omc asked about the squawk code missing from the transponder. Looking at the captain's FMC, I entered the code on the pre departure clearance printout. On takeoff, departure asked us to change our code. Both the captain and myself realized the pre departure clearance printout was from the previous flight.

Google
 

Original NASA ASRS Text

Title: B737 FO AND CAPT FAIL TO ENTER CORRECT XPONDER CODE PRIOR TO DEPARTING DEN, WHICH IS BROUGHT TO THEIR ATTN ON TKOF BY D01.

Narrative: I ASSUMED THE CAPT HAD GOTTEN THE PDC. TAXIING OUT, THE OMC ASKED ABOUT THE SQUAWK CODE MISSING FROM THE XPONDER. LOOKING AT THE CAPT'S FMC, I ENTERED THE CODE ON THE PDC PRINTOUT. ON TKOF, DEP ASKED US TO CHANGE OUR CODE. BOTH THE CAPT AND MYSELF REALIZED THE PDC PRINTOUT WAS FROM THE PREVIOUS FLT.

Data retrieved from NASA's ASRS site as of July 2007 and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.