For args= ['', '0', 'P1', 'with', '10'] and students=[['1', '2', '3', 6]] it prints:
[[['1', '2', '3', 6]]]
[[['10', '2', '3', 6]]]
The expected output was :
[[['1', '2', '3', 6]]]
[[['1', '2', '3', 6]]]
But it somehow changes the backup_list any quick solutions?
backup_list.append(students[:])
print(backup_list)
students[int(args[1])][0] = args[4]
print(backup_list)