Adam Bark
05/18/2010 01:21 AM
To
Sivapathasuntha Aruliah/S1/a...@amkor
cc
tutor@python.org
Subject
Re: [Tutor] Unable to run a simple Hello.py in WinXP
On 17 May 2010 09:05, Sivapathasuntha Aruliah <
sivapathasuntha.arul...@amkor.com> wrote:
Hi
If possible please run the following
Hi Yashwin
When I run the hello.py from it's location by double clicking it shows an
error with the pop up window C:\Python31\python.exe is not a valid win32
application.
When I give the command from IDLE then it says SyntaxError: invalid syntax
Which can be seen from Python Shell. Please analys
Hi All,
I couldn't understand the difference between pass and continue keywords,
could you explain to me?
--
Best Regards
Muhammad Bashir Al-Noimi
My Blog: http://mbnoimi.net
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscri
M. Bashir Al-Noimi wrote:
Hi All,
I couldn't understand the difference between pass and continue
keywords, could you explain to me?
Taken from the docs at http://docs.python.org/tutorial/controlflow.html
The continue statement continues the next iteration of a loop for eg.
for line in fil
On Tue, 18 May 2010 10:34:16 pm M. Bashir Al-Noimi wrote:
> Hi All,
>
>
> I couldn't understand the difference between pass and continue
> keywords, could you explain to me?
"pass" is a do-nothing statement. It literally does nothing.
"continue" is only allowed inside a for-loop or while-loop, a
Python 3.1.1 (r311:74483, Aug 17 2009, 17:02:12) [MSC v.1500 32 bit (Intel)]
on win32
Type "copyright", "credits" or "license()" for more information.
>>> print 'hello'
SyntaxError: invalid syntax (, line 1)
>>> print ('hello')
hello
>>>
the above print is what i came across having installed pytho
On Tue, May 18, 2010 at 8:40 AM, Dipo Elegbede wrote:
> Python 3.1.1 (r311:74483, Aug 17 2009, 17:02:12) [MSC v.1500 32 bit
> (Intel)] on win32
> Type "copyright", "credits" or "license()" for more information.
> >>> print 'hello'
> SyntaxError: invalid syntax (, line 1)
> >>> print ('hello')
> he
Dipo Elegbede wrote:
Python 3.1.1 (r311:74483, Aug 17 2009, 17:02:12) [MSC v.1500 32 bit
(Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> print 'hello'
SyntaxError: invalid syntax (, line 1)
>>> print ('hello')
hello
>>>
the above print is what i came acros
thanks a lot.
i was almost going to abandon this python again out of frustration. i have
done it before but with you guys around, it would never happen again.
i have a pdf version of python programming for absolute beginners, could
anyone please help me with its accompaning CD content?
thanks as
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 Banking
in the header of for loop, you don't need to use "the" -> for i in range(10)
On 5/18/10, 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.
>
> i am currently readin
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 - Tutor@
(Please don't top-post. Add your comments to the end of the portion
you're quoting.)
Dipo Elegbede wrote:
thanks a lot.
i was almost going to abandon this python again out of frustration. i have
done it before but with you guys around, it would never happen again.
i have a pdf version of pyt
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 cur
I AM CURRENTLY LEARNING WITH PYTHON 3.0
just about now, you are all blowing my minds.
this is great.
On Tue, May 18, 2010 at 2:49 PM, Dave Angel wrote:
> (Please don't top-post. Add your comments to the end of the portion you're
> quoting.)
>
>
> Dipo Elegbede wrote:
>
>> thanks a lot.
>>
>> i
IMHO: If you're new to Python and just trying to learn the language, I'd
suggest sticking to Python 2.x for now, as the vast majority of Python
material out there still use and refer to Python 2.x syntax. IMHO it'll be
a lot easier learning and coping with what's changed in Python 3 only once
you
That's a good one Sir, i started out with 2.x series but left it for a
while.
Coming back now, i'm getting on well just for this few changes but I think
with a forum like this, I'd fare well in this pythonic journey.
Thanks.
On Tue, May 18, 2010 at 2:56 PM, Walter Prins wrote:
> IMHO: If you're
all worked well.
thanks all.
On Tue, May 18, 2010 at 2:47 PM, alex gunn wrote:
> 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
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 *
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 wrote:
> On Tue, 18 May 2010 11:36:02 pm Dipo Elegbede wrote:
>> ples help me figure out what is wrong w
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 wrote:
> thanks Steven. I'll always be mindful of that.
I'm changing the subject line because this is going into a different topic.
On Tue, May 18, 2010 at 05:39:50PM +0100, Dipo Elegbede wrote:
> 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 loo
On Tue, 18 May 2010 14:53:45 +0100
Dipo Elegbede wrote:
> I AM CURRENTLY LEARNING WITH PYTHON 3.0
> just about now, you are all blowing my minds.
> this is great.
Please don't write your replies on top. Write them instead just after the
part(s) of the message you're replying to; and delete the
"Dipo Elegbede" wrote
please confirm this is a new syntax for print.
thank you.
i will put up morte concerns as they arrive.
Please read the Whats New in Python v3 documents first.
Version 3 of Python is a major change in the language with
many big changes. Do not just try stuff and send
thanks Steve, this response came handy.
I would have to take this home and read. if i encounter difficulties,
I'd get back to the house.
I'm grateful.
If I get more explanations though, it would be great.
Regards,
On 5/18/10, Steve Willoughby wrote:
> I'm changing the subject line because this is
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 "", line 1
for i in the range(10):
ok
On 5/18/10, spir ☣ wrote:
> On Tue, 18 May 2010 14:53:45 +0100
> Dipo Elegbede wrote:
>
>> I AM CURRENTLY LEARNING WITH PYTHON 3.0
>> just about now, you are all blowing my minds.
>> this is great.
>
> Please don't write your replies on top. Write them instead just after the
> part(s) of the
"Dipo Elegbede" 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 loops.
It does not c
On Wed, 19 May 2010 01:23:55 +1000
Steven D'Aprano 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.
>
> O
Thanks
On 18/05/2010 02:20 م, Steven D'Aprano wrote:
On Tue, 18 May 2010 10:34:16 pm M. Bashir Al-Noimi wrote:
Hi All,
I couldn't understand the difference between pass and continue
keywords, could you explain to me?
"pass" is a do-nothing statement. It literally does nothing.
"c
Hello all,
Does anyone have advice for writing unit tests against variables set by
command-line options?
I have a program I'd like to run in either "debug" or "live" mode, with
various settings associated with each. Below is some pseudo-code that shows
what I'd like to do:
<>
mode = p.parse_args
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
Am 18.05.2010 22:49, schrieb Serdar Tumgoren:
Hello all,
Does anyone have advice for writing unit tests against variables set
by command-line options?
I have a program I'd like to run in either "debug" or "live" mode,
with various settings associated with each. Below is some pseudo-code
tha
33 matches
Mail list logo