|
import random |
|
|
|
def super_ai_9000(input_text): |
|
"""The AI's brilliant response generator.""" |
|
responses = [ |
|
"Banana!", |
|
"Did someone say potato?", |
|
"Beep boop... processing... error 404: brain not found", |
|
"Is that a squirrel?" |
|
] |
|
return random.choice(responses) |
|
|
|
def chat_interface(): |
|
"""The main chat loop.""" |
|
print("Welcome to Super AI 9000! (The one that runs on AA batteries)") |
|
|
|
while True: |
|
user_input = input("You: ") |
|
if user_input.lower() == "exit": |
|
break |
|
|
|
ai_response = super_ai_9000(user_input) |
|
print("Super AI 9000:", ai_response) |
|
|
|
if __name__ == "__main__": |
|
chat_interface() |
|
|
|
|