Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# coding: utf-8
print("type command: hello")
COMMAND1 = "hello"
def handle_command(command):
Determine if the command is valid. If so, take action and return
a response, if neccessary.
response = ""
if command.find(COMMAND1) >= 0:
response = "huh?"
return response
while command.find(COMMAND1) >= 0:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.