input: Write a function to design a basic chatbot in Python that responds to casual inquiries using random responses from a predefined list. The function should include a simple loop to keep the conversation going until the user inputs 'Goodbye', at which point the chatbot should end the conversation. If the input is anything other than 'Goodbye', the chatbot should provide a random response from the list.
  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!"]
      # 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 chatbot_response("How are you?") in ["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!"]
  assert chatbot_response("What's your favorite color?") in ["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!"]
  assert chatbot_response("Can you help me with my homework?") in ["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!"]
  assert chatbot_response("Tell me a joke.") in ["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!"]
  assert chatbot_response("Goodbye") != "That's a great question!"
output: import random
  
  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!"]
      response = random.choice(answers)
      return response