how to write many or to if in python code example
Example 1: how to list more than 1 condition in an if statement python
bool = True
str = 'Helo'
int = 9
if bool == True and str == 'Helo':
print('Hello World')
if bool == False or int == 9:
print('Success')
Example 2: python double condition if
if conditionA and conditionB:
print('and')
if conditionA or conditionB:
print('or')