I am trying to make a duplicate list of lists and change one element to another within the nested lists of the duplicate list but am having some trouble. How I made the dup
L = [['F' if x == 'R' else 'R' if x == 'F' else x for x in row] for row in order]