Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 25th, 2005, 7:22 PM   #1
Eragon229
Newbie
 
Join Date: Jul 2005
Posts: 14
Rep Power: 0 Eragon229 is an unknown quantity at this point
Unhappy Name foo not defined?

I'm making this program for making plans and saving them in the program itself. I
Here's the code.


print "Newsletter Plan Recorder"
import time
time.sleep(1)
print "To bring up previous made plans, please type in Bring up."
print "If you want to write plans for a (another) plan, please type in New."
raw_input()
if foo == 'Bring up':
print List
elif foo == 'New':
print "Type in the name of your new plan."
a = raw_input()

It says Name foo is not defined.
Thanks.
__________________
Scientists prove this. Scientists prove that. They discover this, discover that. Though it seems there will be nothing left the discover, wrongo. Look beyond. I see no boundaries. The only boundaries, are your determination, your imagination, your intuition, and your knowledge. But it all started with a dream.
Eragon229 is offline   Reply With Quote
Old Aug 25th, 2005, 7:25 PM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
That could be because it isn't.
foo = raw_input()
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Aug 25th, 2005, 7:33 PM   #3
Eragon229
Newbie
 
Join Date: Jul 2005
Posts: 14
Rep Power: 0 Eragon229 is an unknown quantity at this point
Talking Thanks.

I knew I forgot something. Thanks a lot Ooble.
__________________
Scientists prove this. Scientists prove that. They discover this, discover that. Though it seems there will be nothing left the discover, wrongo. Look beyond. I see no boundaries. The only boundaries, are your determination, your imagination, your intuition, and your knowledge. But it all started with a dream.
Eragon229 is offline   Reply With Quote
Old Aug 26th, 2005, 7:51 AM   #4
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
One more point: use [code] tags. They fix the tabbing, so they're doubly-important in Python.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:16 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC