Ethereal
Neurotic Male
Here's a program I made that makes the user take a mathematics quiz, records their name and class number, then logs their score to a database via MSQlite. It then gives the user the ability to output the scores (in sexy tables I might add) of anyone who has taken the quiz in these selectable formats: average score, highest score in ascending order and name of everyone who has taken the quiz alphabetically. The program was designed to be taken by pupils in three different classes.
Anyone running the program needs to install Tabulate, as it is the programs one and only dependency:
Link to sqlite database file full of users:
Link to private Gist (the code):
Location of the module I used to create the sexy tables:
This program should provide a good understanding of SQLite in Python and a little bit of how maths work too. Sorry that the program is so
elongated. :'>
Here's a little example of the averaging selection:
Anyone running the program needs to install Tabulate, as it is the programs one and only dependency:
Code:
pip install tabulate
Link to sqlite database file full of users:
You must be registered for see links
Link to private Gist (the code):
You must be registered for see links
Location of the module I used to create the sexy tables:
You must be registered for see links
This program should provide a good understanding of SQLite in Python and a little bit of how maths work too. Sorry that the program is so
elongated. :'>
Here's a little example of the averaging selection:
Last edited: