Re: Top Python Interview Questions

2017-05-27 Thread alister
On Sat, 27 May 2017 14:15:07 +1000, Chris Angelico wrote: > On Sat, May 27, 2017 at 12:19 PM, Steve D'Aprano > wrote: >> On Sat, 27 May 2017 09:37 am, Chris Angelico wrote: >> >>> On Sat, May 27, 2017 at 8:56 AM, Larry Martell >>> >>> wrote: If they write a loop with range(1,10) they are go

Re: Top Python Interview Questions

2017-05-26 Thread Chris Angelico
On Sat, May 27, 2017 at 12:19 PM, Steve D'Aprano wrote: > On Sat, 27 May 2017 09:37 am, Chris Angelico wrote: > >> On Sat, May 27, 2017 at 8:56 AM, Larry Martell >> wrote: >>> If they write a loop with range(1,10) they are going in the 'no' pile. >>> If they write a loop with range(1,11) they go

Re: Top Python Interview Questions

2017-05-26 Thread Steve D'Aprano
On Sat, 27 May 2017 09:37 am, Chris Angelico wrote: > On Sat, May 27, 2017 at 8:56 AM, Larry Martell > wrote: >> If they write a loop with range(1,10) they are going in the 'no' pile. >> If they write a loop with range(1,11) they go in the maybe pile >> If the write sum([i*i for i in range(1,11)]

Re: Top Python Interview Questions

2017-05-26 Thread Chris Angelico
On Sat, May 27, 2017 at 8:56 AM, Larry Martell wrote: > If they write a loop with range(1,10) they are going in the 'no' pile. > If they write a loop with range(1,11) they go in the maybe pile > If the write sum([i*i for i in range(1,11)]) and sqrt(sum([i for i in > range(1,11)])) they are going i

Re: Top Python Interview Questions

2017-05-26 Thread Larry Martell
On Fri, May 26, 2017 at 1:03 AM, Aarusha wrote: > PYTHON INTERVIEW QUESTIONS > > Mindmajix has compiled Python Interview questions which would benefit the > learners to attend the Python interviews. > > Q. How is Python executed? > > Python files are compiled to bytecode. which is then executed b

Re: Top Python Interview Questions

2017-05-26 Thread Akira Li
Terry Reedy writes: > On 5/26/2017 1:03 AM, Aarusha wrote: >> PYTHON INTERVIEW QUESTIONS >> >> Mindmajix has compiled Python Interview questions which would >> benefit the learners to attend the Python interviews. >> >> Q. How is Python executed? > > It depends on the implementation (interpreter

Re: Top Python Interview Questions

2017-05-26 Thread Rustom Mody
On Friday, May 26, 2017 at 12:28:30 PM UTC+5:30, Steve D'Aprano wrote: > On Fri, 26 May 2017 03:32 pm, Terry Reedy wrote: > > >> Python files are compiled to bytecode. > > > > CPython compiles to cpython bytecode. > > Jython compiles to Java. > > Iron Python compiles to C#. > > Technically, they

Re: Top Python Interview Questions

2017-05-26 Thread Steve D'Aprano
On Fri, 26 May 2017 03:32 pm, Terry Reedy wrote: >> Python files are compiled to bytecode. > > CPython compiles to cpython bytecode. > Jython compiles to Java. > Iron Python compiles to C#. Technically, they compile to the JVM byte code and the .Net Common Runtime (I forget the three letter acro

Re: Top Python Interview Questions

2017-05-25 Thread Terry Reedy
On 5/26/2017 1:03 AM, Aarusha wrote: PYTHON INTERVIEW QUESTIONS Mindmajix has compiled Python Interview questions which would benefit the learners to attend the Python interviews. Q. How is Python executed? It depends on the implementation (interpreter or compiler). Python files are compil

Top Python Interview Questions

2017-05-25 Thread Aarusha
PYTHON INTERVIEW QUESTIONS Mindmajix has compiled Python Interview questions which would benefit the learners to attend the Python interviews. Q. How is Python executed? Python files are compiled to bytecode. which is then executed by the host. Alternate Answer: Type python .pv at the command l