Git Product home page Git Product logo

python-oop-quiz's Introduction

Quiz Console App

This is a quiz implemented with object-oriented-programming in Python.

Specs

The quiz must accomodate any number of questions, passed to the class via a list.

The questions and their different possible answers need to be printed to the console, which needs to be cleaned after the user submits their answer to each question, so that only one question and its answers are visible to the user at any given time.

The app needs to keep track of the correct answers vs. the total number of questions, and display this tally after each question answered.

The app needs to display the words "Quiz Over!" and the final score once all the questions have been answered.

The quiz needs to implement validation of the answers (only a, b, c and d allowed, and no blank input).

Since there is only one quiz, we don't need to create class instances, so no self argument will be needed.

All methods created inside the Quiz class will be class methods.

python-oop-quiz's People

Contributors

mariobox avatar

Watchers

 avatar

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.