input: Write a function to create a simple chatbot using Python and state diagrams. The chatbot should initialize with the state `state0` and keep a record of the conversation. The function should return the conversation log when the chatbot reaches a terminal state.
  
  assert create_chatbot()==['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 create_chatbot():
      conversation_log = []
      state = 'state0'
      
      while True:
          if state == 'state0':
              conversation_log.append('Hello! How can I help you?')
              state = 'state1'
          elif state == 'state1':
              conversation_log.append('Can you answer my questions?')
              state = 'state2'
          elif state == 'state2':
              conversation_log.append('Yes, I\'ll do my best! What do you want to know?')
              state = 'state3'
          elif state == 'state3':
              conversation_log.append('Where can I find good tutorials')
              state = 'state4'
          elif state == 'state4':
              conversation_log.append('You can find tutorials online or join coding communities to get help from experienced coders. StackOverflow and Cod Academy are great resources.')
              state = 'state5'
          elif state == 'state5':
              conversation_log.append('Goodbye!')
              break
      
      return conversation_log