Coder Social home page Coder Social logo

shanice-mckay / study-quest-shuffler Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 4 KB

A simple memorization study tool in Python. The program prompts the user to enter the number of questions, the questions and the corresponding answer. The program will then randomize the order in which the questions are displayed. A tally will be displayed at the end of the session.

Python 100.00%
python-3 school school-education simple-python student students study study-tool simple-python-study-tool

study-quest-shuffler's Introduction

study-quest-shuffler

A simple python program that serves as a memorization study tool for students at any level with any program specialization.

There are four main functions of this program.

  1. Program prompts user to enter the number of questions for the session. The input() function is used to allow the user to enter the number of questions they want to practice memorizing for the session.

  2. Program prompts user to enter each question and corresponding answer. The while loop in the program is controlled by the number the user enters. In other words, it determines the amount of times the program will ask for the question and the corresponding answer to the question. The responses are stores in a list called 'question_bank'.

  3. Program randomly shuffles the order of the questions, allows user to input and match it to the answer. The random module is imported to the program and thhe shuffle() function is used to randomize the questions stored in the question bank and displays it to the user. The input() function is used to allowed the user to enter their answer to the question. The input is validated by checking if it matched the answer entered previously.

  4. Program displays the tally of scores to user. Throughout the program, the count variable 'score' is increased by 1 if the answer is correct. This is then used to calculate the percentage of accuracy at the end of the program. The tally of the score against the number of question is displayed. The out put statement differs based on the percentage. If the percentage is greater than 60%, the output statement says "Great job!" and if not, the output statement says "Good try!".

Overall, the program runs smoothly and it is completely case-insensitive.

Room for improvement for the Study Quest Shuffler includes allowing the user to start another study session with the same question submitted and to start another session completely. I want to also look into a GUI interface.

study-quest-shuffler's People

Contributors

shanice-mckay avatar

Watchers

 avatar  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.