I’m trying to create an anime suggestion algorithm to help me learn python but i ran into a problem. So when I run the program it just prints out a random sample from the animemovies variable which holds a csv of anime movies even though i might pick (S) for animeseries or (O) for animeother which hold their respective csv files, I've double checked the csv files and even printed the separately to confirm that all the variables link to different file so im pretty sure it a problem with a loop i even switch the placement for animemovies and series in the if statement and all that cam out from then on were series, the program is ignoring the other if statements does anyone know how to fix this?
# Here is the problem because no matter what option they choose it suggests a movie (you'll have to remove the
if r1 == 'M' or 'm':
r1 = animemovies
break
elif r1 == 'S' or 's':
r1 = animeseries
break
elif r1 == 'O' or 'o':
r1 = animeother
break
else:
print('NANI!??\nINVALID INPUT!!!\nBAKA!')
continue
lis = r1[r1['genre'].isin([r2])]...