Operator - 'or'

Outputs True if either of the operands is true.

Suppose, If we are comparing two statement using ‘or’ operator. If any of the two statement is True, then the output will be True.

In below example, try different values of variable isRed and isYellow and try to understand 'or' operator

            #Traffic signal example
isRed = True
isYellow = False

if (isRed or isYellow) :
    print("Vehicle must stop")
else :
    print("Vehicle can move")

Using or operator write a programme to check if user uses credit or debit card then it is a card transaction.