Help for a complete newbie

2006-04-14 Thread Ralph H. Stoos Jr.
All,

I am reading a Python tutorial for complete non-programmers.

The code below is so simple as to be insulting but the assignment of the 
"ready" variable gives a syntax error.

The code reads letter-for-letter like the tutorial states.

Here is a dump.  Can anyone tell me what is wrong?

***

print " "
print "This \"autotp\" program will create raw bitmap test pattern images."
print " "
print "Please read the information below thoroughly:"
print " "
print "1. Graphic files MUST be TIFF images."
print "2. Images MUST have been ripped though a Nuvera system as a Print 
and Save job"
print "3. Images should already be named with the desired file name."
print "4. The Lead Edge and file name should be identified in the image."
print "5. The name includes the purpose for, resolution of, side, and 
paper size"
print "6. Images should be rotated to print correctly from Service 
Diagnostics."
print " "
print "EXAMPLE: Bypass_BFM_Damage_1200x1200_Letter.tif"
print " "

# Get the decision if operator is ready
ready = raw_input("Ready to proceed ? TYPE (y)es or (n)o: ")

if ready  == "y":
print "You are Ready"
else:
print "Try again"

OUTPUT from execution

  File "autotp.py", line 21
 ready = raw_input("Ready to proceed ? TYPE (y)es or (n)o: ")
 ^
***

Please respond to the group and to:  [EMAIL PROTECTED]

Thanks,

Ralph
-- 
http://mail.python.org/mailman/listinfo/python-list


HELP PLEASE: What is wrong with this?

2006-04-14 Thread Ralph H. Stoos Jr.
  File "autotp.py", line 21
 ready = raw_input("Ready to proceed ? TYPE (y)es or (n)o: ")
 ^
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Help for a complete newbie

2006-04-14 Thread Ralph H. Stoos Jr.
Tim,

After a little more research, I did find that out.  It is funny, but in 
the tutorial "Non-Programmers Tutorial For Python", it makes no mention 
of the indentation issue, at least in the beginning portions which I had 
read.

This is an age old problem of learning.  Once you know something, much 
of it seems simple and the knowledge of it can become assumed.  One of 
the first things that should be done when providing training is to 
assess your audience.

I am going to pick up a book like "Beginning Python" or "Learning 
Python" this weekend.

Thanks so much for the info.  Newsgroups are a great source of info, and 
folks like yourself are the reason why this is true.

Best Regards,

Ralph



Tim Roberts wrote:
> "Ralph H. Stoos Jr." <[EMAIL PROTECTED]> wrote:
>> I am reading a Python tutorial for complete non-programmers.
>>
>> The code below is so simple as to be insulting but the assignment of the 
>> "ready" variable gives a syntax error.
>>
>> The code reads letter-for-letter like the tutorial states.
> 
> Letter for letter, maybe, but not space for space.  Indentation is
> important in Python.  The "ready =", "if ready", and "else:" statements
> must start in column 1.  The two print statements need to be indented, as
> they are.
-- 
http://mail.python.org/mailman/listinfo/python-list