MCPcopy Create free account
hub / github.com/awsdocs/aws-doc-sdk-examples / ask_questions

Method ask_questions

python/example_code/glue/question.py:31–43  ·  view source on GitHub ↗

Asks a set of questions and stores the answers in a dict. :param questions: The list of questions to ask. :return: A dict of answers.

(questions)

Source from the content-addressed store, hash-verified

29
30 @staticmethod
31 def ask_questions(questions):
32 """
33 Asks a set of questions and stores the answers in a dict.
34
35 :param questions: The list of questions to ask.
36 :return: A dict of answers.
37 """
38 answers = {}
39 for question in questions:
40 answers[question.key] = Question.ask_question(
41 question.question, *question.validators
42 )
43 return answers
44
45 @staticmethod
46 def ask_question(question, *validators):

Callers

nothing calls this directly

Calls 1

ask_questionMethod · 0.45

Tested by

no test coverage detected