I have numerous comparisons to make. I have used multiple if statements for such, but there are too many and I'm not sure if it's the best coding practice. What can I use to replace them?
For example, I have this:
if ((ANum==2) and (Action==1)):
print ("*some text*")
if ((ANum==2) and (Action==1) and (2.5<=Freq<=4)):
print("*some text*")
if ((ANum==2) and (1<=FreqMagnitude<=6.5)):
print("*some text*")
if ((ANum==1) and (Action==0) and (4.5>Freq)):
print("*some text*")
I have like 20 of these statements with different single, double, or triple conditionals. Is there a better coding practice?