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")
Join 2 million + to receive instant DIY inspiration in your inbox.
© 2016 Autodesk, Inc.