greetings and welcome (back) to Python! i have a few comments for you:
1. The syntax for Python 3.x has changed from 2.x, so please be aware
of the differences as you are learning. Most books and code out there
is still 2.x. 3.x is being adopted but because of the differences, it
is slower than mo
Sir,
Under the handling files topic, trying to compile the addressbook
example you gave,
am I to put them all in one file and save as address book? or each is
a different module
is saved in different files?
I have attached for your correction what I did, please let me know if
it is wrong and
then
Well, what do you know!
Turns out, I never use that function anyway, so it won't change a damn thing
for me. But thanks for the heads up!
And thanks for the nod to the haiku. So many people don't see it.
--
I enjoy haiku
but sometimes they don't make sense;
refrigerator?
On Mon, May 24, 20
On 24 May 2010 09:20, Matthew Wood wrote:
> Well, I'd use the raw_input function instead of the input function.
>
> and I'd check out the math.floor function as well. :-)
>
> Lemme know if you have any other questions.
>
> --
>
> I enjoy haiku
> but sometimes they don't make sense;
> refrigerator
> Well, I'd use the raw_input function instead of the input function.
input is raw_input in Python 3.1.
raw_input doesn't exist.
Alan G.
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailm
Well, I'd use the raw_input function instead of the input function.
and I'd check out the math.floor function as well. :-)
Lemme know if you have any other questions.
--
I enjoy haiku
but sometimes they don't make sense;
refrigerator?
On Mon, May 24, 2010 at 1:55 AM, Dipo Elegbede wrote:
>
Hello Sir,
I'm trying to write a program that checks for the square root of any
number input by the User.
It's a fairly simple coding though atleast for an ambitious beginner.
I want the code to first, calculate the square root and the tell the
user whether or not.
It should end up telling the U
Hi Alan.
I was looking through your page "http://www.alan-g.me.uk/l2p/index.htm";
Covering the topic: Looping - Or the art of repeating oneself!
Under for loop, Note 3:
...*You can prove that by typing print( list( range(1,13) )*..
The print statement above seem to be incomplete, I think
Thanks Alan, I'm on it.
Regards.
On 5/18/10, Alan Gauld wrote:
>
> "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 maj
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
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
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
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
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
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
(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
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
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
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
On Mon, Nov 23, 2009 at 12:23, Wayne Werner wrote:
> On Mon, Nov 23, 2009 at 12:28 PM, Richard D. Moores
> wrote:
>>
>> Can't find the answer in the docs for 3.1
>>
>> To print 123**34.6 to 5 sig digits,
>>
>> print("%.*e" % (4, 123**34.6))
>>
>> will do the job:
>>
>> >>> print("%.*e" % (4, 123*
On Mon, Nov 23, 2009 at 12:28 PM, Richard D. Moores wrote:
> Can't find the answer in the docs for 3.1
>
> To print 123**34.6 to 5 sig digits,
>
> print("%.*e" % (4, 123**34.6))
>
> will do the job:
>
> >>> print("%.*e" % (4, 123**34.6))
> 2.0451e+72
>
> However, if the number is 123**346, using
>
21 matches
Mail list logo