With Instructables you can share what you make with the world, and tap into an ever-growing community of creative experts.
Tell us about yourself!
This is so cool.import randomgreetings = ['hola','hello','hi','Hi','hey!','hey','sup','whats up?',]questions = ['how are you?','how are you doing?']responses = ['Okay',"I'm fine" 'i am great!']while True: userInput = raw_input(">>> ") if userInput in greetings: random_greetings = random.choice(greetings) print(random_greeting) elif userInput in question: random_response = random.choice(responses) print(random_response) else : print("I did not understand what you said")
Let your inbox help you discover our best projects, classes, and contests. Instructables will help you learn how to make anything!
© 2016 Autodesk, Inc.