http://weiss-trockenbau.net/um/tlsw.rnwvq___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Denis Heidtmann Wrote in message:
>
>
Please post in text, not html. Your posting program loses the
indentation in the text view, which is what most people
see.
Code:
def fib2(n):
if n==1:
return 1
elif n==2:
return 1
else:
Can anyone recommend a good Django book? I have been looking on Amazon, and
the books seem to be out of date.
Thanks,
Chris
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/
On 6 February 2014 09:46, Alan Gauld wrote:
> On 06/02/14 02:11, Steven D'Aprano wrote:
>
>> But still complex. And you're limited by the (lack of) stability of
>> Windows.
>
> Unless you are running a server a modern Windows set up is stable enough.
> Since windows 7 and 8 the core OS is far bett
On Thu, Feb 6, 2014 at 11:28 AM, Denis Heidtmann
wrote:
for i in range(4):
> ... print fib2(i)
> ...
>
> The above results in an error:
Because fib2(0) recurses infinitely, and i's first value is 0.
-- Devin
___
Tutor maillist - Tutor@python
Ah. Consider what range(4) looks like. It's similar to the sequence:
[0, 1, 2, 3]
What happens when you do fib2(0)?
:P
Here's your program (modified with a correction) on repl.it, for convenience:
http://repl.it/O30
___
Tutor maillist -
On 2014-02-06, Denis Heidtmann wrote:
> Running python 2.7 on Ubuntu 12.04
>
> Code:
> def fib2(n):
> if n==1:
> return 1
> elif n==2:
> return 1
> else:
> return fib2(n-2) +fib2(n-1)
Something ate your leading spaces. Keep in mind that that makes
most Python code unrecoverably corrupt. When shar
Denis Heidtmann wrote:
> Running python 2.7 on Ubuntu 12.04
>
> Code:
> def fib2(n):
> if n==1:
> return 1
> elif n==2:
> return 1
> else:
> return fib2(n-2) +fib2(n-1)
>
> The above works:
>
fib2(7)
> 13
fib2(4)
> 3
>
for i in range(4):
> ... print fib2(i)
> ...
>
> The ab
Running python 2.7 on Ubuntu 12.04
Code:
def fib2(n):
if n==1:
return 1
elif n==2:
return 1
else:
return fib2(n-2) +fib2(n-1)
The above works:
>>> fib2(7)
13
>>> fib2(4)
3
>>> for i in range(4):
... print fib2(i)
...
The above results in an error:
Traceback (most recent call last):
File
On Thu, Feb 6, 2014 at 8:38 AM, Neil Cerutti wrote:
> Linux is a great OS for a child to learn computing and
> programming on, provided the parent knows it well enough to train
> the student on it. If not, it's just inviting needless headaches.
Look at http://www.edubuntu.org/
Leam
---
Mind o
On 2014-02-06, Alan Gauld wrote:
> And for a beginner who is only programming casually and likely
> doing other things with the PC a Windows box makes a lot of
> sense since other programs are more plentiful and generally
> better quality for casual use.
>
> If you want to become a pro then sure L
On 02/06/2014 02:51 AM, Tim Krupinski wrote:
The reason I suggest Linux is because a lot of Python is used in it
already.
People was also designed (according to Guido vR) to please Unix/C hackers.
d
___
Tutor maillist - Tutor@python.org
To unsubscr
On 02/06/2014 12:13 AM, Alan Gauld wrote:
On 05/02/14 18:34, Colin Chinsammy wrote:
I am considering purchasing the Acer c720 chromebook for my 13yo to
begin learning Python for Kids. Obviously I am on a budget.
I wouldn't consider a Chromebpook for anyone learning programming.
They are fine f
On 02/05/2014 04:30 PM, Alan Ho wrote:
Hi,
I am a novice in Python, having attended a course few weeks ago and I'm working
on my assignment now, and I encounter this issue when I was trying to print the
entire Windows Registry (WR) sub-keys directories (trying that first with the
below codes
On Thu, Feb 06, 2014 at 10:09:07PM +1100, Steven D'Aprano wrote:
> Hi Sasha, and welcome!
Correction, Sacha.
Sorry about that, I know how annoying it is to have your name
misspelled.
--
Steven
___
Tutor maillist - Tutor@python.org
To unsubscribe o
Hi Sasha, and welcome!
On Thu, Feb 06, 2014 at 07:41:12AM +, Sacha Rook wrote:
> Hi as much as I like chrome books
>
> My opinion so I would rather give him a laptop
^^^
Her.
I'll just drop this link here:
http://www.linuxjournal.com/content/girls-a
On 05/02/14 18:34, Colin Chinsammy wrote:
I am considering purchasing the Acer c720 chromebook for my 13yo to
begin learning Python for Kids. Obviously I am on a budget.
One option which is aimed at the kids eduication kind of
market and hasn't been mentioned is the RasberryPi.
Its very Python
On 06/02/14 02:11, Steven D'Aprano wrote:
But still complex. And you're limited by the (lack of) stability of
Windows.
Unless you are running a server a modern Windows set up is stable
enough. Since windows 7 and 8 the core OS is far better than earlier
incarnations. I've only had one BSOD i
18 matches
Mail list logo