There are better ways of doing this but I'm a bit n0ob myself, but it does the job!
questionList is a list/array where you store your questions, questionId is used in the loop to get the right answer for the question.
print answer[questionId][0] would output "I'm a snake.." if the user types "What are you"
I've made this so it can be used with random function to output random answer for a specific question.
Code:
#! usr/bin/env python
question = raw_input("Ask me something\n")
questionList = ["What are you", "Is this all"]
questionId = 0
answer = [["I'm a Snake, be afraid!", "Second answer for the first question"], ["Nope!"]]
for questions in questionList:
if question == questions:
print answer[questionId][0]
questionId = questionId + 1
questionList is a list/array where you store your questions, questionId is used in the loop to get the right answer for the question.
print answer[questionId][0] would output "I'm a snake.." if the user types "What are you"
I've made this so it can be used with random function to output random answer for a specific question.