[Tutor] help
Timothy Wilson
wilson@visi.com
Mon, 9 Oct 2000 21:33:03 -0500 (CDT)
On Mon, 9 Oct 2000, Richard E. Doksa wrote:
> hi im new to programming and cant find help anywhere where i live i was wondering can anyone tell me what is wrong with this program i wrote. it is only a program to answer a simple question.
>
> input = feline
> print raw_input("what kind of animal is a cat?")
> if input == feline:
> print "thats right!"
> if input != feline:
> print "try again"
Try this:
input = raw_input("What kind of animal is a cat? ")
if input == 'feline':
print "That\'s right!"
else:
print "Try again."
Have fun.
-Tim
--
Tim Wilson | Visit Sibley online: | Check out:
Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/
W. St. Paul, MN | | http://slashdot.org/
wilson@visi.com | <dtml-var pithy_quote> | http://linux.com/