Re: [Tutor] Fahrenheit to Celsius Conversion another problem and Programming Paradigm

2017-06-15 Thread William Gan
Hi Sebastian, Very much thanks for your help. Your explanation and illustrations is clear. I was not aware of that syntax. I now understand and the issue is resolved. Thanks again. Cheers. -Original Message- From: Sebastian Silva [mailto:sebast...@fuentelibre.org] Sent: Thursday,

Re: [Tutor] Fahrenheit to Celsius Conversion another problem and Programming Paradigm

2017-06-15 Thread William Gan
Hi David, Very much thanks for taking time to help. Your explanation has helped me understand that syntax issue better. I have resolved that error. Your counsel on the second issue has given me encouragement. Thank you. Best regards. -Original Message- From: David Rock

Re: [Tutor] Fahrenheit to Celsius Conversion another problem and Programming Paradigm

2017-06-15 Thread William Gan
Hi Alan, Very much thanks again for your help. Your elucidation helped me gain better understanding on this issue. I have resolved that error. Thank you also for your counsel on this second issue. Best regards. -Original Message- From: Alan Gauld [mailto:alan.ga...@yahoo.co.uk]

Re: [Tutor] Fahrenheit to Celsius Conversion another problem and Programming Paradigm

2017-06-15 Thread David Rock
> On Jun 15, 2017, at 13:16, William Gan wrote: > > Hi David, > > Very much thanks for taking time to help. > > Your explanation has helped me understand that syntax issue better. I have > resolved that error. > > Your counsel on the second issue has given me

Re: [Tutor] Fahrenheit to Celsius Conversion another problem and Programming Paradigm

2017-06-15 Thread Bo Yu
On Thu, Jun 15, 2017 at 12:52:10PM +, Neil Cerutti wrote: On 2017-06-14, Peter Otten <__pete...@web.de> wrote: Sebastian Silva wrote: Or shorter: if unit in 'Cc': Don't do that. You are in for nasty surprises: def check(unit): ... if unit in "Cc": ... return "Celsius"

Re: [Tutor] Fahrenheit to Celsius Conversion another problem and Programming Paradigm

2017-06-15 Thread Neil Cerutti
On 2017-06-14, Peter Otten <__pete...@web.de> wrote: > Sebastian Silva wrote: > >> Or shorter: >> >> if unit in 'Cc': > > Don't do that. You are in for nasty surprises: > def check(unit): > ... if unit in "Cc": > ... return "Celsius" > ... return "unknown" > ...