See more
from google.colab import filesuploaded = files.upload()
A rule-based chatbot is provided with a list of set answers for a set of queries a user might use the…