Copyright (c) 2012 Jose Luis Naranjo Gomez
========================================================================
LICENSE http://www.gnu.org/copyleft/gpl.html
========================================================================
Flashcards has three components:
quiz.py - data.py - quiz_maker.py
========================================================================
INSTALLATION
========================================================================
Use:
python setup.py install
That should do the trick.
========================================================================
GENERAL USAGE
========================================================================
NOTE:
importing flashcards creates a data.py file in the current working directory.
flashcards uses the local data.py file in the cwd.
flashcards may truncate the existing data.py, so be careful with your quizzes.
If installed:
in the python shell:
import flashcards
#That should activate the menu UI
If not installed:
Run menu.py in flashcards/flashcards
========================================================================
1)quiz.py
This is the main script. It takes the questions and answers from data.py
and uses them to quiz the user. That is all.
2)data.py
This is data script. It uses two ordered lists, questions and answers. T
he index numbers in each list correspond to each other.
questions:
This is a list of strings, containing the questions.
answers:
This is a list of strings and/or tuples with strings in them. quiz.py
knows how to tell the difference between tuples and strings and handl
e them.
3)quiz_maker.py
All this script does is provide an interface for quickly writing questio
ns to data.py to make things easier. With this script, you won't even ne
ed to touch data.py yourself.
USAGE
QUESTION:
When the user is prompted to enter a question, it is stored as a string
using the raw_input() statement.
ANSWER:
When the user is prompted to enter an answer, it is stored with the inp
ut() statement.
ENTERING A SINGLE ANSWER:
Encapsulate the answer with apostrophes or quotation marks.
ENTERING MULTIPLE ANSWERS:
Write the answer as a tuple.
Encapsulate the whole statement with parentheses, and each value ne
eds to be encapsulated as if you were entering a single answer, with
apostrophes or quotation marks.
========================================================================
LICENSE http://www.gnu.org/copyleft/gpl.html
========================================================================
Flashcards has three components:
quiz.py - data.py - quiz_maker.py
========================================================================
INSTALLATION
========================================================================
Use:
python setup.py install
That should do the trick.
========================================================================
GENERAL USAGE
========================================================================
NOTE:
importing flashcards creates a data.py file in the current working directory.
flashcards uses the local data.py file in the cwd.
flashcards may truncate the existing data.py, so be careful with your quizzes.
If installed:
in the python shell:
import flashcards
#That should activate the menu UI
If not installed:
Run menu.py in flashcards/flashcards
========================================================================
1)quiz.py
This is the main script. It takes the questions and answers from data.py
and uses them to quiz the user. That is all.
2)data.py
This is data script. It uses two ordered lists, questions and answers. T
he index numbers in each list correspond to each other.
questions:
This is a list of strings, containing the questions.
answers:
This is a list of strings and/or tuples with strings in them. quiz.py
knows how to tell the difference between tuples and strings and handl
e them.
3)quiz_maker.py
All this script does is provide an interface for quickly writing questio
ns to data.py to make things easier. With this script, you won't even ne
ed to touch data.py yourself.
USAGE
QUESTION:
When the user is prompted to enter a question, it is stored as a string
using the raw_input() statement.
ANSWER:
When the user is prompted to enter an answer, it is stored with the inp
ut() statement.
ENTERING A SINGLE ANSWER:
Encapsulate the answer with apostrophes or quotation marks.
ENTERING MULTIPLE ANSWERS:
Write the answer as a tuple.
Encapsulate the whole statement with parentheses, and each value ne
eds to be encapsulated as if you were entering a single answer, with
apostrophes or quotation marks.
Release files for flashcards 1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flashcards-1.tar.gz | 3.5 kB | Details |
Release files / flashcards-1.tar.gz
| Download URL | flashcards-1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
900a0ba5fa1e3d47608a7534956ebf774a26decca717c8987470d44f972895ae
|
|
BLAKE2b-256 checksum How to use checksums |
6bfb360757749a11c4c778c02ede654da9b87ed08dee162cbce1e5195443fb6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |