Get help on this challenge

Debugging7


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[0] = 'Jon'
lNames[0] = '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.



Challenge by Futility.