Making an English test in PythonHow can I represent an 'Enum' in Python?Way to create multiline comments in Python?What is the Python 3 equivalent of “python -m SimpleHTTPServer”Using Python 3 in virtualenvHow to find out wether a word exists in english using nltkWhy is “1000000000000000 in range(1000000000000001)” so fast in Python 3?for-loop Python 3.5. Creating a quiz for students I tutorPython, math quiz. The questions being asked aren't accepting answersPython lists and rangesTest case for the magic-8-ball game
What is the color associated with lukewarm?
Parallelized for loop in Bash
Why can't we feel the Earth's revolution?
Arrows inside a commutative diagram using tikzcd
A flower's head or heart?
How effective would a full set of plate armor be against wild animals found in temperate regions (bears, snakes, wolves)?
Fastest way from 10 to 1 with everyone in between
Someone who is granted access to information but not expected to read it
Is it possible to have battery technology that can't be duplicated?
Does this Spirit Guardians + Thorn Whip combo work?
Does "aurea" have the second meaning?
What's a opened solder bridge signifies?
Approach sick days in feedback meeting
Realistic, logical way for men with medieval-era weaponry to compete with much larger and physically stronger foes
Background for black and white chart
Is it possible to install Firefox on Ubuntu with no desktop enviroment?
Shouldn't it take more energy to break CO2 compared to CO?
How can I find out about the game world without meta-influencing it?
Can artificial satellite positions affect tides?
Boss making me feel guilty for leaving the company at the end of my internship
Why does there seem to be an extreme lack of public trashcans in Taiwan?
Can Dive Down protect a creature against Pacifism?
Was the Lonely Mountain, where Smaug lived, a volcano?
Is there a term for someone whose preferred policies are a mix of Left and Right?
Making an English test in Python
How can I represent an 'Enum' in Python?Way to create multiline comments in Python?What is the Python 3 equivalent of “python -m SimpleHTTPServer”Using Python 3 in virtualenvHow to find out wether a word exists in english using nltkWhy is “1000000000000000 in range(1000000000000001)” so fast in Python 3?for-loop Python 3.5. Creating a quiz for students I tutorPython, math quiz. The questions being asked aren't accepting answersPython lists and rangesTest case for the magic-8-ball game
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I'm writing an English testing program in Python 3. It will display a random word from my list and then ask a question about the word. There are 4 questions for the 5 words.
Do I make another list for the questions and concatenate it with the list of words?
At the moment I'm using random.choice to display a word and the enumerate function to index it (1,2,3,4,5). Can I do the same thing for the list of questions?
Can I use an if/else to display if the answer was correct?
python-3.x
add a comment |
I'm writing an English testing program in Python 3. It will display a random word from my list and then ask a question about the word. There are 4 questions for the 5 words.
Do I make another list for the questions and concatenate it with the list of words?
At the moment I'm using random.choice to display a word and the enumerate function to index it (1,2,3,4,5). Can I do the same thing for the list of questions?
Can I use an if/else to display if the answer was correct?
python-3.x
Do I make another list for the questions and concatenate it with the list of words? Why would you want to do that? Can I do the same thing for the list of questions? Yes. Can I use an if/else to display if the answer was correct? Yes. If you want more help, you should probably post actual code and ask a real question.
– Elliott Frisch
Mar 25 at 4:46
It would be really nice if you could put a screenshot / code sample of where you are stuck. It seems like you can do whatever you have asked about.
– Rajan Prasad
Mar 25 at 5:16
add a comment |
I'm writing an English testing program in Python 3. It will display a random word from my list and then ask a question about the word. There are 4 questions for the 5 words.
Do I make another list for the questions and concatenate it with the list of words?
At the moment I'm using random.choice to display a word and the enumerate function to index it (1,2,3,4,5). Can I do the same thing for the list of questions?
Can I use an if/else to display if the answer was correct?
python-3.x
I'm writing an English testing program in Python 3. It will display a random word from my list and then ask a question about the word. There are 4 questions for the 5 words.
Do I make another list for the questions and concatenate it with the list of words?
At the moment I'm using random.choice to display a word and the enumerate function to index it (1,2,3,4,5). Can I do the same thing for the list of questions?
Can I use an if/else to display if the answer was correct?
python-3.x
python-3.x
edited Mar 25 at 4:42
karel
2,43492832
2,43492832
asked Mar 25 at 1:23
Benma10Benma10
1
1
Do I make another list for the questions and concatenate it with the list of words? Why would you want to do that? Can I do the same thing for the list of questions? Yes. Can I use an if/else to display if the answer was correct? Yes. If you want more help, you should probably post actual code and ask a real question.
– Elliott Frisch
Mar 25 at 4:46
It would be really nice if you could put a screenshot / code sample of where you are stuck. It seems like you can do whatever you have asked about.
– Rajan Prasad
Mar 25 at 5:16
add a comment |
Do I make another list for the questions and concatenate it with the list of words? Why would you want to do that? Can I do the same thing for the list of questions? Yes. Can I use an if/else to display if the answer was correct? Yes. If you want more help, you should probably post actual code and ask a real question.
– Elliott Frisch
Mar 25 at 4:46
It would be really nice if you could put a screenshot / code sample of where you are stuck. It seems like you can do whatever you have asked about.
– Rajan Prasad
Mar 25 at 5:16
Do I make another list for the questions and concatenate it with the list of words? Why would you want to do that? Can I do the same thing for the list of questions? Yes. Can I use an if/else to display if the answer was correct? Yes. If you want more help, you should probably post actual code and ask a real question.
– Elliott Frisch
Mar 25 at 4:46
Do I make another list for the questions and concatenate it with the list of words? Why would you want to do that? Can I do the same thing for the list of questions? Yes. Can I use an if/else to display if the answer was correct? Yes. If you want more help, you should probably post actual code and ask a real question.
– Elliott Frisch
Mar 25 at 4:46
It would be really nice if you could put a screenshot / code sample of where you are stuck. It seems like you can do whatever you have asked about.
– Rajan Prasad
Mar 25 at 5:16
It would be really nice if you could put a screenshot / code sample of where you are stuck. It seems like you can do whatever you have asked about.
– Rajan Prasad
Mar 25 at 5:16
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55330222%2fmaking-an-english-test-in-python%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55330222%2fmaking-an-english-test-in-python%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Do I make another list for the questions and concatenate it with the list of words? Why would you want to do that? Can I do the same thing for the list of questions? Yes. Can I use an if/else to display if the answer was correct? Yes. If you want more help, you should probably post actual code and ask a real question.
– Elliott Frisch
Mar 25 at 4:46
It would be really nice if you could put a screenshot / code sample of where you are stuck. It seems like you can do whatever you have asked about.
– Rajan Prasad
Mar 25 at 5:16