Skip to content

Function Listing

kkCoder111 edited this page May 15, 2022 · 1 revision

Back to homepage

Quizmaster - Function Listing

setQuizName(name (str), creator(str)): Sets the displayed name and author of the quiz.

For example, if you add setQuizName("My Quiz", "kkCoder111") to your program, the console will print Quiz: My Quiz by kkCoder111 instead of Quiz: Untitled Quiz by [current username].

default_point_values(point_value (int)):

Sets the default point values for questions.

If this function is not run or point_value is set to a value less than 0, the default point values will default to 500.

add_question(question_title (str), answer_list (list), correct_answer (str), point_value (int)):

Sets the question title, list of answers, the correct answer, and the point value for the question.

If the point_value is set to a value less than 0, the default point value will be used.

startQuiz()

Starts the quiz.

Clone this wiki locally