0

Please correct me if i am wrong:

a = "Disabled"

if a == "Disabled" and "Disable":
    print('True')
else:
    print('False')

if a is "Disabled" or "Disable"
blhsing
  • 77,832
  • 6
  • 59
  • 90
Hoster
  • 3
  • 2

1 Answers1

0

What you wanted to write is

if a == "Disabled" or a == "Disable":

Other option is

if a in ("Disabled", "Disable):
brevno
  • 192
  • 7