input: 
  def simple_chatbot():
      """
      Create a simple chatbot using Python and state diagrams.
      The chatbot uses predefined states to handle user inputs and transitions between states.
      Each state contains a message to display to the user and possible replies that lead to other states.
      
      Example:
      Conversation after starting from state0 and user choosing 'I need some advice':
      
      Conversation:
      Hello! How can I help you?
      I need some advice
      Sure, what kind of advice do you need?
      
      """
  
output:     state = 'state0'
      while True:
          if state == 'state0':
              print("Hello! How can I help you?")
              user_input = input().strip().lower()
              if 'advice' in user_input:
                  state = 'state1'
              elif 'bye' in user_input:
                  print("Goodbye!")
                  break
              else:
                  print("I'm not sure how to help with that.")
          elif state == 'state1':
              print("Sure, what kind of advice do you need?")
              user_input = input().strip().lower()
              if 'relationship' in user_input:
                  print("Relationships can be tough. Communication is key.")
              elif 'career' in user_input:
                  print("For career advice, focus on your strengths and seek opportunities for growth.")
              elif 'bye' in user_input:
                  print("Goodbye!")
                  break
              else:
                  print("I'm not sure how to help with that.")
                  state = 'state0'