Here's my new and improved program:
def quiz_question(some_question, some_right_answer):
question = raw_input(some_question)
if question == some_right_answer:
print "Yes!\n"
else:
print "Wrong\n"
quiz_question("Name the capital of NC? ", "Ra
Hi! My first "ever" program that I've created is a simple game called "State
Capitals". It's straight forward; 5 simple questions about state capitals in
a non-GUI format. Can someone look over my code and offer tips, suggestions,
criticism? Also, I'd like to be able to end the program if the us
Hi! I'm on the version 2.4, going through Beginning Python (Wrox), and I'm
getting the above error. I'm trying to do this:
menu_specials._contains_("test")
Any ideas on what I'm doing wrong? Thanks!
___
Tutor maillist - Tutor@python.org
http://mai
Hi! I'm on Gauld's wonderful "Learning to Program" tutor. I've got to the
end of the chapter on "Error Handling" and I'm trying the sample ideas for
creating my own programs. My problem is getting started! Is there a "step by
step" method for creating programs or some basic guidelines for this?
Hi! I've completed Learning to Program (off the website) and I've started to
play around with code that I've found on Useless Python. I'm ready to start
my first project! This may be way over my head, but I want to make a ping
sweeper (put a range of IP addresses & ping to see which are vaild).