Feb-08-2020, 04:59 AM
recs = {1: ['Susan Smith', '[email protected]'], 2: ['Cole Brown', '[email protected]'], 3: ['Sue John', '[email protected]']} for key in recs: recs[key] = [item.replace('.com', '.org') for item in recs[key]]Thank U
Sir,
recs[key]= how the whole record is being stored? Here key means 1,2,3, but the value also being stored. Please explain how this key works.