Re: Brief Code Review Please - Learning Python

2015-12-07 Thread Thomas 'PointedEars' Lahn
Joel Goldstick wrote: > On Sun, Dec 6, 2015 at 12:21 PM, wrote: >> * Same question as right above but with the if tests on lines 5-8. >> * I've also used ( ) around the if tests, but I'm not sure if this is >> good Python style or not. >> >> 1 def measure_string(desired_text, >> 2

Brief Code Review Please - Learning Python

2015-12-06 Thread Jason Alan Smith
Hello List Members, I am beginning to learn Python, and I've adapted some code from Google into the function below. I'm also looking at the PEP 8 style guide. I'd appreciate a brief code review so I can start this journey off on a solid foundation. :) * I've already changed my editor f

Brief Code Review Please - Learning Python

2015-12-06 Thread Jason Alan Smith
Hello List Members, I am beginning to learn Python, and I've adapted some code from Google into the function below. I'm also looking at the PEP 8 style guide. I'd appreciate a brief code review so I can start this journey off on a solid foundation. :) * I've already changed my editor f

Re: Brief Code Review Please - Learning Python

2015-12-06 Thread Peter Otten
qualityaddict...@gmail.com wrote: > [Note: Tried sending this twice to the Python-List mail list but I never > [saw it come through to the list.] > > Hello everyone, > > I am beginning to learn Python, and I've adapted some code from Google > into the function below. I'm also looking at

Re: Brief Code Review Please - Learning Python

2015-12-06 Thread Chris Angelico
On Mon, Dec 7, 2015 at 4:34 AM, Joel Goldstick wrote: >> 5 if (desired_text != '') and \ >> 6 (desired_font_family != '') and \ >> 7 (desired_font_size != '') and \ >> 8 ((is_multi_lines == "True") or (is_multi_lines == "False")): >> > > The above test will always

Re: Brief Code Review Please - Learning Python

2015-12-06 Thread Joel Goldstick
On Sun, Dec 6, 2015 at 12:21 PM, wrote: > [Note: Tried sending this twice to the Python-List mail list but I never > saw it come through to the list.] > > Hello everyone, > > I am beginning to learn Python, and I've adapted some code from Google > into the function below. I'm also looking at

Brief Code Review Please - Learning Python

2015-12-06 Thread qualityaddictorg
[Note: Tried sending this twice to the Python-List mail list but I never saw it come through to the list.] Hello everyone, I am beginning to learn Python, and I've adapted some code from Google into the function below. I'm also looking at the PEP 8 style guide. I'd appreciate a brief cod