input: Write a function to create a simple chatbot using Python and state diagrams. The function should initialize the chatbot in a starting state, handle user inputs, transition between states based on user inputs, and keep a record of the conversation. If the chatbot reaches a terminal state without further replies, it should end the conversation and print the conversation history.
  
  assert chatbot_conversation([])==["Hello! How can I help you?", "Goodbye!"]
  assert chatbot_conversation(["I need some advice", "Career advice"])==["Hello! How can I help you?", "I need some advice", "Sure, what kind of advice do you need?", "Career advice", "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.", "Goodbye!"]
  assert chatbot_conversation(["Can you answer my questions?", "Where can I find good tutorials"])==["Hello! How can I help you?", "Can you answer my questions?", "Yes, I'll do my best! What do you want to know?", "Where can I find good tutorials", "You can find tutorials online or join coding communities to get help from experienced coders. StackOverflow and Cod Academy are great resources.", "Goodbye!"]
output: def chatbot_conversation(user_inputs):
      conversation = ["Hello! How can I help you?"]
      state = "start"
      
      for user_input in user_inputs:
          if state == "start":
              if "advice" in user_input.lower():
                  conversation.append(user_input)
                  conversation.append("Sure, what kind of advice do you need?")
                  state = "advice"
              elif "question" in user_input.lower():
                  conversation.append(user_input)
                  conversation.append("Yes, I'll do my best! What do you want to know?")
                  state = "question"
              else:
                  conversation.append(user_input)
                  conversation.append("Goodbye!")
                  break
          elif state == "advice":
              conversation.append(user_input)
              if "career" in user_input.lower():
                  conversation.append("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.")
              else:
                  conversation.append("I'm sorry, I don't have advice on that topic.")
              conversation.append("Goodbye!")
              break
          elif state == "question":
              conversation.append(user_input)
              if "tutorial" in user_input.lower():
                  conversation.append("You can find tutorials online or join coding communities to get help from experienced coders. StackOverflow and Cod Academy are great resources.")
              else:
                  conversation.append("I'm sorry, I don't have information on that topic.")
              conversation.append("Goodbye!")
              break
      
      if state == "start":
          conversation.append("Goodbye!")
      
      return conversation