Adding Python quiz questions
See original GitHub issuedeveloperquiz.org currently has over 600 quiz questions. We are looking to expand on the Python questions and we encourage other developers to add their quiz questions to the site.
Please note: we are only focusing on general Python questions instead of library and framework specific questions.
You can find the complete list of questions below. https://github.com/freeCodeCamp/Developer_Quiz_Site/blob/main/src/data/python-quiz.ts
You can add your own questions to the top of that file. Please first check to make sure your question doesn’t already exist in the file before creating a PR.
Here is an example format for the questions.
{
Question:
"In Python, which method can be used to replace parts of a string?",
Answer: "replace()",
Distractor1: "switch()",
Distractor2: "repl()",
Distractor3: "find()",
Explanation:
"If you need to search through a string for a pattern, and replace it with another pattern, you can use the replace() method.",
Link: "https://www.freecodecamp.org/news/python-string-methods-tutorial-how-to-use-find-and-replace-on-python-strings/",
},
For the link
field, please make sure to use a freeCodeCamp article, freeCodeCamp YouTube video or official documentation.
If you choose to reference a video, please make sure to include the timestamp for the topic covered.
You can read more about how to create timestamps in this helpful article.
This issue will not be assigned to anyone and will remain open for multiple contributors. Please do not assign yourself to this issue or close it.
Happy contributing!
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (9 by maintainers)
Top GitHub Comments
Hi @Still11 !
If you are interested in contributing a quiz question, then please create a PR. https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request Thanks!
For anyone interested in contributing, please read through the contributing documentation first.