[Tutor] what is wrong with the syntax?

2010-07-10 Thread Dipo Elegbede
Hi all, please tell me what is wrong with the syntax as written herein: http://pastebin.com/BkLi0A4H I am actually trying to let a user input something and have the input returned in a reverse form and also see the lenght of the input. please help. -- Elegbede Muhammed Oladipupo OCA

Re: [Tutor] what is wrong with the syntax?

2010-07-10 Thread Steve Willoughby
On 10-Jul-10 10:05, Dipo Elegbede wrote: Hi all, please tell me what is wrong with the syntax as written herein: http://pastebin.com/BkLi0A4H I am actually trying to let a user input something and have the input returned in a reverse form and also see the lenght of the input. please help. Is

Re: [Tutor] what is wrong with the syntax?

2010-07-10 Thread Alan Gauld
Dipo Elegbede delegb...@dudupay.com wrote please tell me what is wrong with the syntax as written herein: http://pastebin.com/BkLi0A4H Please post full error reports as well as the code. It helps a lot! You code has numerous errrs in it but the syntax errors are in the print statements.

[Tutor] what is wrong with this syntax?

2010-05-18 Thread Dipo Elegbede
ples help me figure out what is wrong with this syntax? print('Here are the numbers from 0 to 9') for i in the range(10): print(i) thank you. i am currently reading a byte of a python. thanks. -- Elegbede Muhammed Oladipupo OCA +2348077682428 +2347042171716 www.dudupay.com Mobile

Re: [Tutor] what is wrong with this syntax?

2010-05-18 Thread zaldi
in the header of for loop, you don't need to use the - for i in range(10) On 5/18/10, Dipo Elegbede delegb...@dudupay.com wrote: ples help me figure out what is wrong with this syntax? print('Here are the numbers from 0 to 9') for i in the range(10): print(i) thank you. i am

Re: [Tutor] what is wrong with this syntax?

2010-05-18 Thread alex gunn
its the the part print('Here are the numbers from 0 to 9') # for i in the range(10): #your version for i in range(10): #try this print(i) im still learning myself, so be gentle if im wrong but it worked for me. Alex ___ Tutor maillist -

Re: [Tutor] what is wrong with this syntax?

2010-05-18 Thread Vern Ceder
Dipo Elegbede wrote: ples help me figure out what is wrong with this syntax? print('Here are the numbers from 0 to 9') for i in the range(10): print(i) Remove the word the print('Here are the numbers from 0 to 9') for i in range(10): print(i) Cheers, Vern thank you. i am

Re: [Tutor] what is wrong with this syntax?

2010-05-18 Thread Dipo Elegbede
all worked well. thanks all. On Tue, May 18, 2010 at 2:47 PM, alex gunn alex.g...@smallshinyant.comwrote: its the the part print('Here are the numbers from 0 to 9') # for i in the range(10): #your version for i in range(10): #try this print(i) im still learning myself, so be gentle

Re: [Tutor] what is wrong with this syntax?

2010-05-18 Thread Steven D'Aprano
On Tue, 18 May 2010 11:36:02 pm Dipo Elegbede wrote: ples help me figure out what is wrong with this syntax? print('Here are the numbers from 0 to 9') for i in the range(10): print(i) thank you. Others have already given you the answer, but more important is for you to learn *how* to

Re: [Tutor] what is wrong with this syntax?

2010-05-18 Thread Dipo Elegbede
thanks Steven. I'll always be mindful of that. By the way, I need someone to briefly explain to me how the while loop works. a little on break will also do. thanks. On 5/18/10, Steven D'Aprano st...@pearwood.info wrote: On Tue, 18 May 2010 11:36:02 pm Dipo Elegbede wrote: ples help me figure

Re: [Tutor] what is wrong with this syntax?

2010-05-18 Thread Dipo Elegbede
A LITTLE EXPLANATIONS ON CONTINUE WOULD BE APPRECIATED TOO. in a recap, i would appreciate any brief explanation on 1. break 2. continue 3. while loop how they work and application in writing codes. thank you all. On 5/18/10, Dipo Elegbede delegb...@dudupay.com wrote: thanks Steven. I'll

Re: [Tutor] what is wrong with this syntax?

2010-05-18 Thread bob gailer
On 5/18/2010 11:23 AM, Steven D'Aprano wrote: Others have already given you the answer, but more important is for you to learn *how* to get the answer. Look at the error message Python prints: for i in the range(10): File stdin, line 1 for i in the range(10):

Re: [Tutor] what is wrong with this syntax?

2010-05-18 Thread Alan Gauld
Dipo Elegbede delegb...@dudupay.com wrote By the way, I need someone to briefly explain to me how the while loop works. a little on break will also do. Your tutorial should do that but you can also look at the Loops section of my tutorial - use the V3 version - for a discussion of while

Re: [Tutor] what is wrong with this syntax?

2010-05-18 Thread spir ☣
On Wed, 19 May 2010 01:23:55 +1000 Steven D'Aprano st...@pearwood.info wrote: On Tue, 18 May 2010 11:36:02 pm Dipo Elegbede wrote: ples help me figure out what is wrong with this syntax? print('Here are the numbers from 0 to 9') for i in the range(10): print(i) thank you.

Re: [Tutor] what is wrong with this syntax?

2010-05-18 Thread Steven D'Aprano
On Wed, 19 May 2010 03:29:46 am spir ☣ wrote: (Fortunately, python 3.2, planned for April 1, 2011, will be informed that the is an english article. This is possible since there is no ambiguity with thé (fr), thank to Python's clever diacritic-awareness. Only remains then the problematic case