I am newbie in python. How can I match the character ON or OFF in variable value provided by user.
In following example I want to compare only ON or OFF in the input variable in if else statement
User input will be : Authentication = ON
user_input = input("Enter the value: ")
if (user_input == "ON"):
print("The is enable: " +user_input)
else:
print("The is disable: " +user_input)