How can I check for two conditions at once?

Hello I know this old but what do you mean by hard code? I tried everything and task 4/19 on Python loops won’t let me progress. I have used their solution but it still won’t let me progress. Thanks

Would you mind post your code with formatting ? Alongside with a link to the exercise that you are stucked at so we can better assist you !