Re: [Dorset] Python help

2019-05-12 Thread PeterMerchant via dorset
On 12/05/2019 16:10, tim wrote: On Sun, 12 May 2019 15:43:53 +0100 Stephen Wolff wrote: Hi there, trying to teach myself Python at the moment and not doing to well so I have a couple of questions if anybody can help me. 2) Anybody recommend any good online tutorial and\or books. I have a co

Re: [Dorset] Python help

2019-05-12 Thread tim
On Sun, 12 May 2019 15:43:53 +0100 Stephen Wolff wrote: > Hi there, > > > > trying to teach myself Python at the moment and not doing to well so I have > > a couple of > > questions if anybody can help me. > > > > 2) Anybody recommend any good online tutorial and\or books. I have a couple > >

Re: [Dorset] Python help

2019-05-12 Thread Stephen Wolff
Hi there, > > trying to teach myself Python at the moment and not doing to well so I have a > couple of questions > if anybody can help me. > > 2) Anybody recommend any good online tutorial and\or books. I have a couple > at the moment, Python > for Kids and an old copy of Learning Python This

Re: [Dorset] Python help

2019-05-12 Thread Hamish MB
Hi Ralph, Cheers, that makes a lot of sense, thanks for explaining the use case :) As someone who's mostly worked in Python, I guess I've never seen it used. Hamish On 12/05/2019 09:26, Ralph Corderoy wrote: > Hi Hamish, > >> I've heard bad things about goto :) > Forget all you've heard. :-) >

Re: [Dorset] Python help

2019-05-12 Thread Terry Coles
On Saturday, 11 May 2019 21:19:50 BST tim wrote: > 2) Anybody recommend any good online tutorial and\or books. I have a couple > at the moment, Python for Kids and an old copy of Learning Python I'm not the best person to answer questions on Python really, but I do own a copy of Learning Python

Re: [Dorset] Python help

2019-05-12 Thread Ralph Corderoy
Hi Hamish, > I've heard bad things about goto :) Forget all you've heard. :-) The problems with goto date back to languages that offered a one-line if-statement that could goto. No other control-flow than goto existed; no while-loop, for-loop, etc. This included very popular languages that we

Re: [Dorset] Python help

2019-05-12 Thread Ralph Corderoy
Hi Tim, > 1) I need to understand how to use labels (which I believe is what you > should use in Python 3 instead of goto) I haven't paid much attention to Python 3, though used to know 2 pretty well. I don't think either have goto, and neither have labels either. It's always been a language fla

Re: [Dorset] Python help

2019-05-12 Thread Hamish MB
Hi Tim, 1) I've been using Python for a long time and have never seen it fit to use labels - are you sure you don't want to divide it into multiple functions or methods? If labels are similar to goto, I would hesitate to use it - I've heard bad things about goto :) 2) The documentation on py

[Dorset] Python help

2019-05-12 Thread tim
Evening all trying to teach myself Python at the moment and not doing to well so I have a couple of questions if anybody can help me. 1) I need to understand how to use labels (which I believe is what you should use in Python 3 instead of goto), I have a section where I ask a question and the