How do I reverse classes

When preparing my data for a convolutional neural network,I pull from two folders representing the classes. The classes come out with reversed labels. I use the command:

class_names = full_data.classes

to get the classes. But the classes come out [0, 1] because the names of the folders when i would like it to be [1, 0]. Is there a way to reverse the labels?

class_names = - (class_names - 1) will do that.