Git Product home page Git Product logo

fill-in-the-blank-quiz's Introduction

Code Your own Quiz (Python Game)

How do I complete this project?

In this stage, you will use the Python programming language to build your own quiz. You will use a fill-in-the blank style to create a quiz that can even be used as a study tool to help you remember important vocabulary.

Project Specifications

Game Review

  • Game Basics:

    • Game has 3 or more levels and each level contains 4 or more blanks to fill in.
  • Beginning the Game:

    • Immediately after running the program, user is prompted to select a difficulty level from easy / medium / hard.

    • Once a level is selected, game displays a fill-in-the-blank and a prompt to fill in the first blank.

  • Game Play:

    • When player guesses correctly, new prompt shows with correct answer in the previous blank and a new prompt for the next blank.

    • When player guesses incorrectly, they are prompted to try again.

Code Review

  • Use of Variables:

    • Code uses variables to avoid magic numbers.

    • Each variable name reflects the purpose of the value stored in it.

    • Once initiated, the purpose of each variable is maintained throughout the program.

    • No variables override Python built-in values (for example, def).

  • Use of Functions:

    • Function parameters have logical names and are used in the body of the function.

    • Functions are used as tools to automate tasks which are likely to be repeated.

    • Functions produce the appropriate output (typically with a return statement) from the appropriate input (function parameters).

    • No functions are longer than 18 lines of code (does not include blank lines, comments, or function and variable definitions).

  • Appropriate Use of Data:

    • The appropriate data types are used consistently (strings for text, lists for ordered data, nested lists as appropriate).
  • Appropriate Use of Coding Techniques:

    • Student demonstrates coding techniques like branching and loops appropriately (i.e. to loop through a list, for element in list:; or to test whether something is in a list, if name in list_names:).

    • Your code uses statements like if, then, else, while, etc... appropriately.

  • Comments / Documentation:

    • Each function includes a comment which explains the intended behavior, inputs, and outputs (if applicable).

How to Use:

  1. Install Python 2.7

  2. Clone the repository to your computer using git clone

  3. Open the file with Python

My Submission (Version 1.0):

python-quiz-large

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.