Tell us about yourself!

Complete Your Profile
  • Jpool151 commented on slade101's instructable real python AI7 months ago
    real python AI

    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")

    View Instructable »