Please read this explanation before attempting debugging challenges.
Why is my backup getting changed in this stupid Python code?
fNames = ['Stephen', 'Tom', 'Frank', 'Eunice'] lNames = ['Colbert', 'Hora', 'Smith', 'Jones'] nameLog = ['Logs:', fNames, lNames] for x in nameLog: print x fNames = 'Jon' lNames = 'Stewart' print for x in nameLog: print x print print '====================================================================' print 'nameLog is there to hold a backup of all original values in case' print 'they are ever needed again.' print '===================================================================='
Downloadable source code can be found here.
You must be logged in to play.