input: def simple_chatbot():
      """ A chatbot that uses a simple state diagram to simulate a conversation.
      The bot has various states, each responding to specific user inputs
      with a message and a set of possible next states. The conversation
      ends when a state without any replies is reached.
      Example:
      >> I need some advice
      >> Career advice
      The output will be 'It is always a good idea to research the field you are interested in and creating a plan to learn the skills that are required. Make sure to contact professionals in the field to understand their experience.' followed by 'Goodbye!'
      """
output:     state = "start"
      while True:
          if state == "start":
              user_input = input("How can I help you today?\n")
              if "advice" in user_input.lower():
                  print("What kind of advice are you looking for?")
                  state = "advice_type"
              else:
                  print("I'm sorry, I didn't understand that. Please try again.")
          elif state == "advice_type":
              user_input = input()
              if "career" in user_input.lower():
                  print("It is always a good idea to research the field you are interested in and creating a plan to learn the skills that are required. Make sure to contact professionals in the field to understand their experience.")
                  state = "end"
              elif "relationship" in user_input.lower():
                  print("Communication is key in any relationship. Make sure to listen to your partner and express your feelings openly.")
                  state = "end"
              else:
                  print("I'm sorry, I didn't understand that. Please try again.")
          elif state == "end":
              print("Goodbye!")
              break