File size: 813 Bytes
dc78d43
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80b293f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import random  # For the AI's "randomness"

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)  # Choose a random response

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  # Exit the chat

        ai_response = super_ai_9000(user_input)  # Get the AI's response
        print("Super AI 9000:", ai_response)  # Display the response

if __name__ == "__main__":
    chat_interface()