RealGoodDan

Generation

generate functionFri, 21 Jul 2023

Make an ai in python

def ai(userInput): if userInput == "Hello": return "Hi I am your AI" elif userInput == "Hello again": return "Hi again, I am your AI" elif userInput == "bye": return "Bye" else: return "That is not in my list" ai("Hello")

Want to kickstart your project?Use the new AI Studio to create your code