# how to do functions

# define the function
def showState(state):
    if(state == True):
        print("On")
    else:
        print("Off")


# call the function to print On
showState(True)

# call the function to print On
showState(False)              

# how to do functions

# define the function
def showState(state):
    if(state == True):
        print("On")
    else:
        print("Off")


# call the function to print On
showState(True)

# call the function to print On
showState(False)              

# how to do functions # define the function # call the function to print On # call the function to print On