Re: [Tutor] print problem

2010-12-03 Thread Steven D'Aprano
Hs Hs wrote: hi I have a file and it is in chunks: I want to be able to select the number that follows 'Elution: ' where the line startswith (TITLE)(say 72.958) and check if it is larger than my choice of number (say 71.4). If it is then I want to print chunk from BEGIN LINE to END LINE separa

Re: [Tutor] print problem

2010-12-03 Thread Walter Prins
Please post the exact contents of "test_script_test.py", don't paraphrase, don't abbreviate. A good place to post code snippets are here: http://pastebin.com/ That said, I'll try to put down some of the troubleshooting thought process you should be having. Firstly, the error message is telling yo

[Tutor] print problem

2010-12-03 Thread Hs Hs
hi I have a file and it is in chunks: I want to be able to select the number that follows 'Elution: ' where the line startswith (TITLE)(say 72.958) and check if it is larger than my choice of number (say 71.4). If it is then I want to print chunk from BEGIN LINE to END LINE separated by one empty

Re: [Tutor] print problem python

2009-03-07 Thread Kent Johnson
On Sat, Mar 7, 2009 at 7:51 AM, W W wrote: > On Sat, Mar 7, 2009 at 3:11 AM, Alan Gauld wrote: >> Python 3 has a lot of >> changes and most of the beginners material hasn't caught >> up yet. It will be easier to get answers to your questions if >> you stick with v2.6 and then when comfortable wit

Re: [Tutor] print problem python

2009-03-07 Thread W W
On Sat, Mar 7, 2009 at 3:11 AM, Alan Gauld wrote: > Python 3 has a lot of > changes and most of the beginners material hasn't caught > up yet. It will be easier to get answers to your questions if > you stick with v2.6 and then when comfortable with that move > to v3 aand learn about the differenc

Re: [Tutor] print problem python

2009-03-07 Thread Alan Gauld
"mustafa akkoc" wrote i start learning pyton language i want to print some thing but when i type : print "hello world" but it give an error like this SyntaxError: invalid syntax (, line 1) i am using python shell version 3.0.1 If you are new to programming as well as Pyton I recommend yo

Re: [Tutor] print problem python

2009-03-06 Thread Vern Ceder
In Python 3, you need to put ( ) around what you want to print, so it would be: print("hello world") Cheers, Vern mustafa akkoc wrote: i start learning pyton language i want to print some thing but when i type : print "hello world" but it give an error like this SyntaxError: invalid synt

[Tutor] print problem python

2009-03-06 Thread mustafa akkoc
i start learning pyton language i want to print some thing but when i type : print "hello world" but it give an error like this SyntaxError: invalid syntax (, line 1) i am using python shell version 3.0.1 -- Mustafa Akkoc ___ Tutor maillist - Tutor