Simple Python Quiz To Mark 100th Issue of ImportPython

2016-11-25 Thread Ankur Gupta
Hey Python Programmers,

Import Python Newsletter completed 2 years and 100 issues. Have a simple fun 
python quiz http://importpython.com/newsletter/quiz/ to mark the milestone. 

Happy ThanksGiving day to you all.

Regards,
Ankur
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Simple Python Quiz To Mark 100th Issue of ImportPython

2016-11-25 Thread Ankur Gupta
On Friday, November 25, 2016 at 3:22:30 PM UTC+5:30, Chris Angelico wrote:
> On Fri, Nov 25, 2016 at 8:02 PM, Ankur Gupta  wrote:
> > Import Python Newsletter completed 2 years and 100 issues. Have a simple 
> > fun python quiz http://importpython.com/newsletter/quiz/ to mark the 
> > milestone.
> 
> With your question about laying out code, are you aware that PEP 8
> specifically allows both?
> 
> """
> While sometimes it's okay to put an if/for/while with a small body on
> the same line, never do this for multi-clause statements. Also avoid
> folding such long lines!
> """
> 
> You have a very simple condition (actually, trivially simple - in its
> exact form as given, it's always true) guarding a simple statement.
> There's nothing wrong with putting that on a single line. I especially
> consider this important when there are multiple parallel conditions:
> 
> if foo.x: foo.widen()
> if foo.y: foo.heighten()
> if foo.z: foo.deepen()
> 
> There's no point breaking these into two lines each; they show a
> perfect parallel as it is, and splitting the lines would disrupt that.
> 
> ChrisA

Hey ChrisA,

I see merit in what you are saying. I should probably have used an example with 
multiple statements perhaps to draw a better distinction. My bad. 

Quiz is now out so would be unfair for those who attempted it.

Regards,
Ankur
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Simple Python Quiz To Mark 100th Issue of ImportPython

2016-11-25 Thread Ankur Gupta
On Friday, November 25, 2016 at 6:35:13 PM UTC+5:30, Chris Angelico wrote:
> On Fri, Nov 25, 2016 at 11:21 PM, Ankur Gupta  wrote:
> > Hey ChrisA,
> >
> > I see merit in what you are saying. I should probably have used an example 
> > with multiple statements perhaps to draw a better distinction. My bad.
> >
> > Quiz is now out so would be unfair for those who attempted it.
> 
> Fair enough. What you're showing is how hard it is to pin down the
> term "Pythonic" - while it's easy to decry some forms of code as being
> really bad, there are a lot more that are harder to define, and PEP 8
> specifically says you have to look at context.
> 
> Congrats on the 100 issue milestone, which I forgot to say in my previous 
> post.
> 
> ChrisA

Thanks Chris :) 
-- 
https://mail.python.org/mailman/listinfo/python-list


Seeking guidance to start a career in python programming

2020-11-04 Thread ankur gupta
Good Morning to All,
My name is Ankur Gupta and I wish to seek guidance from you. I belong to a
non-computer science background but have always been attracted to this
field. I had computer science in class 12th (Where I learned C++ and
Python) but I did Mechanical Engineering instead in college. I wish to
pursue a career in Python programming and therefore undertook 2 online
certification courses in python but besides this, my progress is almost
stalled.

Request you all to please guide how I can move forward with my current
learning of the language and also steps that I can take to pursue a career
in this field.

Once again thanks to you all for your time and consideration and I look
forward to your response


Regards
Ankur Gupta
-- 
https://mail.python.org/mailman/listinfo/python-list


ImportPython Newsletter

2015-05-03 Thread Ankur Gupta
Hey Guys,

Just like to draw attention to ImportPython a weekly Python newsletter. This is 
the 30th issue of the newsletter http://importpython.com/newsletter/no/30/. 
Check out a listing of all Python Books here http://importpython.com/books/

Thanks,
Ankur
-- 
https://mail.python.org/mailman/listinfo/python-list