While in Python for logical and we use ‘and’ keyword and for logical or we use ‘or’ keyword.
if foo == 'abc' and bar == 'bac' or zoo == '123':
To know more about this you can have a look at the following video tutorial:-
Interested to learn more about Python? Come & join our Python online course