In [1]:
print("Welcome to Legal Enquiry Chatbot")
print("Type 'exit' to quit\n")

while True:
    user_input = input("You: ").lower()

    if user_input == "exit":
        print("Chatbot: Thank you! Stay informed about your legal rights.")
        break

    elif "fir" in user_input:
        print("Chatbot: FIR stands for First Information Report. It is a written document prepared by police when they receive information about a cognizable offence.")

    elif "bail" in user_input:
        print("Chatbot: Bail is the temporary release of an accused person awaiting trial, sometimes on condition of a surety.")

    elif "fundamental rights" in user_input:
        print("Chatbot: Fundamental Rights are basic rights guaranteed by the Constitution of India, such as Right to Equality, Freedom, and Education.")

    elif "cyber crime" in user_input:
        print("Chatbot: Cyber crime refers to criminal activities carried out using computers or the internet, such as hacking, identity theft, or online fraud.")

    elif "consumer court" in user_input:
        print("Chatbot: Consumer Court handles cases related to consumer complaints against unfair trade practices or defective goods/services.")

    elif "ipc" in user_input:
        print("Chatbot: IPC stands for Indian Penal Code. It defines crimes and punishments in India.")

    elif "rti" in user_input:
        print("Chatbot: RTI stands for Right to Information. It allows citizens to request information from public authorities.")

    else:
        print("Chatbot: Sorry, I don't have information on that. Please ask about FIR, Bail, IPC, RTI, Cyber Crime, or Consumer Court.")
Welcome to Legal Enquiry Chatbot
Type 'exit' to quit

You: fir
Chatbot: FIR stands for First Information Report. It is a written document prepared by police when they receive information about a cognizable offence.
You: ipc
Chatbot: IPC stands for Indian Penal Code. It defines crimes and punishments in India.
You: RTI
Chatbot: RTI stands for Right to Information. It allows citizens to request information from public authorities.
You: bail
Chatbot: Bail is the temporary release of an accused person awaiting trial, sometimes on condition of a surety.
You: cyber crime
Chatbot: Cyber crime refers to criminal activities carried out using computers or the internet, such as hacking, identity theft, or online fraud.
You: exit
Chatbot: Thank you! Stay informed about your legal rights.
In [1]: