input: Write a function that creates a basic chatbot in Python for responding to casual inquiries. The function should define a list of possible answers, and depending on user input, it should return a random response from that list. If the user types "Goodbye", the chatbot should respond with "Goodbye!" and terminate the conversation.
  def chatbot():
      # list of possible answers 
      answers = ["That's a great question!", 
          "I'm not sure, but I'll try to find out!", 
          "That sounds interesting, tell me more!", 
          "I have no idea, sorry!"]
  
      def chatbot_response(user_input): 
          # get a random response from answers
          response = random.choice(answers)
          return response
  
      # simple loop to keep the conversation going
      while True:
          user_input = input('You: ')
          if user_input == 'Goodbye':
              print('Chatbot: Goodbye!')
              break
          else:
              print('Chatbot: ', chatbot_response(user_input))
  assert "Goodbye" in chatbot()
output: 
  def chatbot_response(user_input): 
      answers = ["That's a great question!", 
          "I'm not sure, but I'll try to find out!", 
          "That sounds interesting, tell me more!", 
          "I have no idea, sorry!"]
      if user_input == 'Goodbye':
          return 'Goodbye!'
      else:
          return random.choice(answers)
  