So I'm trying to do a chatbot for fun having finished the w3schools py tutorial, the first line asks for input, but the rest of the code isn't executed. What's wrong with my code?
import math
import random
import time
while True:
text = input().lower()
found_greeting = text.find("hello") or text.find("hi") or text.find("greetings")
found_hobbies = text.find("enjoy") or text.find("like") or text.find("find fun") or text.find("enjoys") or text.find("likes") or text.find("finds fun")
if found_greeting >= 0:
print('Hello! I\'m PyChat, an artificial intelligence. How may I help you? ')
if found_hobbies >= 0:
print('I also enjoy that, what a coincidence!')