Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Question-and-answer programs involving questions with a well defined correct answer, especially those that track the player's score.
3
votes
Math game with 'hard' and easy questions
Make it generic and make it maintainable.
To give a simple example:
print("Welcome to the Official Math Game of SkillsUSA!\nYou will have at least five relatively simple questions,\nand up to ten di …
3
votes
Simple multiplication quiz
yn = raw_input("Do you wanna build a mathman? y/n ")
if yn == "n":
exit()
else:
There's a lot of code in your else while the else isn't actually necessary. If the if gets triggered the program …
6
votes
Accepted
Arabic language lesson program
This got way out of hand for the comment section where it started, so let's make this an answer.
You want classes. That's good, since it's going to solve a lot of your repetition problems. Your code …