I have an Excel file and I want to extract some values from it whe it finds 7 or 14 or 13 in the following columns: remainingDaysE or remainingDaysG or remainingDaysI
I am having the following code in Python:
if remainingDaysE == 7 or remainingDaysG == 7 or \
remainingDaysE == 14 or remainingDaysG == 14 or \`enter code here`
remainingDaysE == 30 or remainingDaysG == 30:
# create an email with values extracted
One of the values that I need would be the value that gets me in the "If statement"
My question is: Is there any to get the value that got me into this is "if" statement? E.G: Was it remainingDaysE == 7 or was it remainingDaysG ==30 etc.. How do I get that specific value or is there any other way to reformat the code? I hope I made myself clear.
Thanks!