Last active
October 23, 2024 16:46
-
-
Save brunobord/12dc2d681e18f9b6417929cfa898fb70 to your computer and use it in GitHub Desktop.
chatgpt.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
from time import sleep | |
def answer(): | |
return random.choice([ | |
"No, I don't want to say anything about that!", | |
"There's no need asking, you know the answer.", | |
"I'm just a computer program, nothing more…", | |
"I'm not authorized to tell you.", | |
"There's no point in trying to answer this.", | |
"There's not enough CPU power to give you an answer.", | |
"There's an answer, but you won't like it.", | |
"I agree there's an issue there, but you'll need to be more specific.", | |
]) | |
if __name__ == "__main__": | |
while True: | |
input("How can I help you? ") | |
sleep(random.randint(1, 3)) | |
print() | |
print(answer()) | |
print() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment